Fix broken tests

This commit is contained in:
Bjørn Erik Pedersen 2018-08-09 20:58:31 +02:00
parent 1639fd20d8
commit 43a5aaa778
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
2 changed files with 2 additions and 3 deletions

View file

@ -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 (

View file

@ -16,7 +16,6 @@ package resource
import (
"fmt"
"math/rand"
"os"
"path/filepath"
"strconv"
"testing"