hugolib: Fix broken test
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 1 Aug 2019 20:09:58 +0000 (22:09 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 1 Aug 2019 20:09:58 +0000 (22:09 +0200)
hugolib/embedded_shortcodes_test.go

index c70380a4b89fbd8860e9747546e1e41d68624741..8056b98425b6b197a7209689fa8ce64adb780d02 100644 (file)
@@ -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 (