mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
all: Propagate baseURL error to the callers
This commit is contained in:
parent
148fedd227
commit
15b64d51da
18 changed files with 124 additions and 47 deletions
|
@ -40,8 +40,9 @@ func TestNewPathSpecFromConfig(t *testing.T) {
|
|||
v.Set("staticDir", "thestatic")
|
||||
v.Set("theme", "thetheme")
|
||||
|
||||
p := NewPathSpec(hugofs.NewMem(v), l)
|
||||
p, err := NewPathSpec(hugofs.NewMem(v), l)
|
||||
|
||||
require.NoError(t, err)
|
||||
require.True(t, p.canonifyURLs)
|
||||
require.True(t, p.defaultContentLanguageInSubdir)
|
||||
require.True(t, p.disablePathToLower)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue