mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Fix broken tests
This commit is contained in:
@@ -246,11 +246,11 @@ func TestShortcodeGist(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
`{{< gist spf13 7896402 >}}`,
|
`{{< gist spf13 7896402 >}}`,
|
||||||
"(?s)^<script src=\"//gist.github.com/spf13/7896402.js\"></script>",
|
"(?s)^<script type=\"application/javascript\" src=\"//gist.github.com/spf13/7896402.js\"></script>",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
`{{< gist spf13 7896402 "img.html" >}}`,
|
`{{< gist spf13 7896402 "img.html" >}}`,
|
||||||
"(?s)^<script src=\"//gist.github.com/spf13/7896402.js\\?file=img.html\"></script>",
|
"(?s)^<script type=\"application/javascript\" src=\"//gist.github.com/spf13/7896402.js\\?file=img.html\"></script>",
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
var (
|
var (
|
||||||
|
@@ -16,7 +16,6 @@ package resource
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
Reference in New Issue
Block a user