mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Fix broken tests
This commit is contained in:
parent
1639fd20d8
commit
43a5aaa778
2 changed files with 2 additions and 3 deletions
|
@ -246,11 +246,11 @@ func TestShortcodeGist(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
`{{< 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" >}}`,
|
||||
"(?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 (
|
||||
|
|
|
@ -16,7 +16,6 @@ package resource
|
|||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
|
Loading…
Reference in a new issue