shithub: hugo

Download patch

ref: 43a5aaa778416df85016c388eb581bf362a24b67
parent: 1639fd20d8429806462c0bcc6ee2c47a30cf51f2
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Aug 9 16:58:31 EDT 2018

Fix broken tests

--- a/hugolib/embedded_shortcodes_test.go
+++ b/hugolib/embedded_shortcodes_test.go
@@ -246,11 +246,11 @@
 	}{
 		{
 			`{{< 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 (
--- a/resource/image_test.go
+++ b/resource/image_test.go
@@ -16,7 +16,6 @@
 import (
 	"fmt"
 	"math/rand"
-	"os"
 	"path/filepath"
 	"strconv"
 	"testing"