diff options
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 763394032..449d55abd 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -673,7 +673,8 @@ NotFound: {{< thisDoesNotExist >}} writeSource(t, fs, "content/sect/mycsvpage.md", fmt.Sprintf(pageTemplateCSVOnly, "Single CSV")) writeSource(t, fs, "content/sect/notfound.md", fmt.Sprintf(pageTemplateShortcodeNotFound, "Single CSV")) - require.NoError(t, h.Build(BuildCfg{})) + err := h.Build(BuildCfg{}) + require.Equal(t, "logged 1 error(s)", err.Error()) require.Len(t, h.Sites, 1) s := h.Sites[0] |