diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-10-23 14:37:09 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-10-23 19:41:22 +0200 |
commit | 6636cf1bea77d20ef2a72a45fae59ac402fb133b (patch) | |
tree | 91c9435acd1a2139f8816abcd9b0d978ff2fa300 /hugolib/hugo_sites_build_test.go | |
parent | f669ef6bec25155d015b6ab231c53caef4fa5cdc (diff) | |
download | hugo-6636cf1bea77d20ef2a72a45fae59ac402fb133b.tar.gz hugo-6636cf1bea77d20ef2a72a45fae59ac402fb133b.zip |
Resolve error handling/parser related TODOs
See #5324
Diffstat (limited to 'hugolib/hugo_sites_build_test.go')
-rw-r--r-- | hugolib/hugo_sites_build_test.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go index 727cc6ed9..f1e317f59 100644 --- a/hugolib/hugo_sites_build_test.go +++ b/hugolib/hugo_sites_build_test.go @@ -631,12 +631,10 @@ func assertShouldNotBuild(t *testing.T, sites *HugoSites) { for _, p := range s.rawAllPages { // No HTML when not processed require.Equal(t, p.shouldBuild(), bytes.Contains(p.workContent, []byte("</")), p.BaseFileName()+": "+string(p.workContent)) - // TODO(bep) 2errors - /* - require.Equal(t, p.shouldBuild(), p.content() != "", fmt.Sprintf("%v:%v", p.content(), p.shouldBuild())) - require.Equal(t, p.shouldBuild(), p.content() != "", p.BaseFileName()) - */ + require.Equal(t, p.shouldBuild(), p.content() != "", fmt.Sprintf("%v:%v", p.content(), p.shouldBuild())) + + require.Equal(t, p.shouldBuild(), p.content() != "", p.BaseFileName()) } } |