mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00:00
hugolib: Fix broken test
This commit is contained in:
1 file changed
+2
-2
@@ -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 (
|
||||||
|
|||||||
Reference in new issue
Block a user