mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-04 01:52:06 +00:00
hugolib: Add missing error checks
This commit is contained in:
parent
1ed8c36336
commit
0665a3951b
1 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,7 @@ func TestStaticFs(t *testing.T) {
|
|||
p, err := paths.New(fs, v)
|
||||
assert.NoError(err)
|
||||
bfs, err := NewBase(p)
|
||||
assert.NoError(err)
|
||||
sfs := bfs.StaticFs("en")
|
||||
checkFileContent(sfs, "f1.txt", assert, "Hugo Rocks!")
|
||||
checkFileContent(sfs, "f2.txt", assert, "Hugo Themes Still Rocks!")
|
||||
|
@ -281,6 +282,7 @@ func TestStaticFsMultiHost(t *testing.T) {
|
|||
p, err := paths.New(fs, v)
|
||||
assert.NoError(err)
|
||||
bfs, err := NewBase(p)
|
||||
assert.NoError(err)
|
||||
enFs := bfs.StaticFs("en")
|
||||
checkFileContent(enFs, "f1.txt", assert, "Hugo Rocks!")
|
||||
checkFileContent(enFs, "f2.txt", assert, "Hugo Themes Still Rocks!")
|
||||
|
|
Loading…
Reference in a new issue