aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build_errors_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-07-13 13:40:35 +0200
committerBjørn Erik Pedersen <[email protected]>2020-07-13 20:45:09 +0200
commitc91dbe4ce9c30623ba6e686fd17efae935aa0cc5 (patch)
treec41378c6d2cb1885b0d4248c7356fccefc53980e /hugolib/hugo_sites_build_errors_test.go
parent6e0452e189884667cb58778768136ad28ac31688 (diff)
downloadhugo-c91dbe4ce9c30623ba6e686fd17efae935aa0cc5.tar.gz
hugo-c91dbe4ce9c30623ba6e686fd17efae935aa0cc5.zip
Fix baseof block regression
From Hugo 0.74.0. Fixes #7478
Diffstat (limited to 'hugolib/hugo_sites_build_errors_test.go')
-rw-r--r--hugolib/hugo_sites_build_errors_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/hugolib/hugo_sites_build_errors_test.go b/hugolib/hugo_sites_build_errors_test.go
index 4de98a788..d90a8b364 100644
--- a/hugolib/hugo_sites_build_errors_test.go
+++ b/hugolib/hugo_sites_build_errors_test.go
@@ -65,7 +65,8 @@ func TestSiteBuildErrors(t *testing.T) {
fileFixer: func(content string) string {
return strings.Replace(content, ".Title }}", ".Title }", 1)
},
- assertCreateError: func(a testSiteBuildErrorAsserter, err error) {
+ // Base templates gets parsed at build time.
+ assertBuildError: func(a testSiteBuildErrorAsserter, err error) {
a.assertLineNumber(4, err)
},
},
@@ -90,7 +91,7 @@ func TestSiteBuildErrors(t *testing.T) {
a.c.Assert(fe.Position().LineNumber, qt.Equals, 5)
a.c.Assert(fe.Position().ColumnNumber, qt.Equals, 1)
a.c.Assert(fe.ChromaLexer, qt.Equals, "go-html-template")
- a.assertErrorMessage("\"layouts/_default/single.html:5:1\": parse failed: template: _default/single.html.___b:5: unexpected \"}\" in operand", fe.Error())
+ a.assertErrorMessage("\"layouts/foo/single.html:5:1\": parse failed: template: foo/single.html:5: unexpected \"}\" in operand", fe.Error())
},
},