aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build_errors_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-10-20 19:09:03 +0200
committerBjørn Erik Pedersen <[email protected]>2018-10-22 20:46:14 +0200
commit7930d2132a3c36c1aaca20f16f56978c84656b0a (patch)
tree4a83047bf4d531a22dc6b344ca42e42ed8dabba4 /hugolib/hugo_sites_build_errors_test.go
parenteb038cfa0a8ada29dfcba1204ec5c432da9ed7e0 (diff)
downloadhugo-7930d2132a3c36c1aaca20f16f56978c84656b0a.tar.gz
hugo-7930d2132a3c36c1aaca20f16f56978c84656b0a.zip
hugolib: Remove the now superflous Source struct
See #5324
Diffstat (limited to 'hugolib/hugo_sites_build_errors_test.go')
-rw-r--r--hugolib/hugo_sites_build_errors_test.go21
1 files changed, 10 insertions, 11 deletions
diff --git a/hugolib/hugo_sites_build_errors_test.go b/hugolib/hugo_sites_build_errors_test.go
index 8e2296f5b..6b44bea88 100644
--- a/hugolib/hugo_sites_build_errors_test.go
+++ b/hugolib/hugo_sites_build_errors_test.go
@@ -98,17 +98,16 @@ func TestSiteBuildErrors(t *testing.T) {
a.assertLineNumber(2, err)
},
},
- // TODO(bep) 2errors
- /* {
- name: "Shortode execute failed",
- fileType: shortcode,
- fileFixer: func(content string) string {
- return strings.Replace(content, ".Title", ".Titles", 1)
- },
- assertBuildError: func(a testSiteBuildErrorAsserter, err error) {
- a.assertLineNumber(2, err)
- },
- },*/
+ {
+ name: "Shortode execute failed",
+ fileType: shortcode,
+ fileFixer: func(content string) string {
+ return strings.Replace(content, ".Title", ".Titles", 1)
+ },
+ assertBuildError: func(a testSiteBuildErrorAsserter, err error) {
+ a.assertLineNumber(25, err)
+ },
+ },
{
name: "Panic in template Execute",