Fix broken tests
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 9 Aug 2018 18:58:31 +0000 (20:58 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 9 Aug 2018 18:58:31 +0000 (20:58 +0200)
hugolib/embedded_shortcodes_test.go
resource/image_test.go

index 36ffe76c5f2a8ae91468cb1273a76775ac980637..1ac050ab0a17c46624c3e6fdafb4d9ce1e78c730 100644 (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 (
index d6bd2b0dcd415702a64c187539293d151034e43c..a9aacbdcef7b3272a1667fbf4e5d54347e7f4b1a 100644 (file)
@@ -16,7 +16,6 @@ package resource
 import (
        "fmt"
        "math/rand"
-       "os"
        "path/filepath"
        "strconv"
        "testing"