hugolib: Fix broken test

This commit is contained in:
Bjørn Erik Pedersen 2019-08-01 22:09:58 +02:00
parent 2d1d33673d
commit 9ef4dca361
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -250,11 +250,11 @@ func TestShortcodeGist(t *testing.T) {
}{ }{
{ {
`{{< gist spf13 7896402 >}}`, `{{< gist spf13 7896402 >}}`,
"(?s)^<script type=\"application/javascript\" src=\"//gist.github.com/spf13/7896402.js\"></script>", "(?s)^<script type=\"application/javascript\" src=\"https://gist.github.com/spf13/7896402.js\"></script>",
}, },
{ {
`{{< gist spf13 7896402 "img.html" >}}`, `{{< gist spf13 7896402 "img.html" >}}`,
"(?s)^<script type=\"application/javascript\" src=\"//gist.github.com/spf13/7896402.js\\?file=img.html\"></script>", "(?s)^<script type=\"application/javascript\" src=\"https://gist.github.com/spf13/7896402.js\\?file=img.html\"></script>",
}, },
} { } {
var ( var (