summaryrefslogtreecommitdiffstats
path: root/helpers/pathspec_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/pathspec_test.go')
-rw-r--r--helpers/pathspec_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers/pathspec_test.go b/helpers/pathspec_test.go
index c67c6fbdc..2536b8f24 100644
--- a/helpers/pathspec_test.go
+++ b/helpers/pathspec_test.go
@@ -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)