hugo/0001-Remove-trailing-semico...

25 lines
1.5 KiB
Diff

diff -up hugo-0.75.1/hugolib/resource_chain_test.go.orig hugo-0.75.1/hugolib/resource_chain_test.go
--- hugo-0.75.1/hugolib/resource_chain_test.go.orig 2020-09-15 08:45:52.000000000 +0200
+++ hugo-0.75.1/hugolib/resource_chain_test.go 2020-09-18 06:09:09.236592187 +0200
@@ -576,7 +576,7 @@ Min HTML: {{ ( resources.Get "mydata/htm
`)
}, func(b *sitesBuilder) {
b.AssertFileContent("public/index.html", `Min CSS: h1{font-style:bold}`)
- b.AssertFileContent("public/index.html", `Min JS: var x;x=5;document.getElementById("demo").innerHTML=x*10;`)
+ b.AssertFileContent("public/index.html", `Min JS: var x;x=5,document.getElementById("demo").innerHTML=x*10`)
b.AssertFileContent("public/index.html", `Min JSON: {"employees":[{"firstName":"John","lastName":"Doe"},{"firstName":"Anna","lastName":"Smith"},{"firstName":"Peter","lastName":"Jones"}]}`)
b.AssertFileContent("public/index.html", `Min XML: <hello><world>Hugo Rocks!</<world></hello>`)
b.AssertFileContent("public/index.html", `Min SVG: <svg height="100" width="100"><path d="M1e2 1e2H3e2 2e2z"/></svg>`)
diff -up hugo-0.75.1/minifiers/minifiers_test.go.orig hugo-0.75.1/minifiers/minifiers_test.go
--- hugo-0.75.1/minifiers/minifiers_test.go.orig 2020-09-15 08:45:52.000000000 +0200
+++ hugo-0.75.1/minifiers/minifiers_test.go 2020-09-18 06:09:25.456620712 +0200
@@ -34,7 +34,7 @@ func TestNew(t *testing.T) {
var rawJS string
var minJS string
rawJS = " var foo =1 ; foo ++ ; "
- minJS = "var foo=1;foo++;"
+ minJS = "var foo=1;foo++"
var rawJSON string
var minJSON string