Skip to content

Commit

Permalink
hugolib: Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 1, 2019
1 parent 2d1d336 commit 9ef4dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugolib/embedded_shortcodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ func TestShortcodeGist(t *testing.T) {
}{
{
`{{< 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" >}}`,
"(?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 (
Expand Down

0 comments on commit 9ef4dca

Please sign in to comment.