diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-03-25 14:37:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-03-27 15:43:56 +0200 |
commit | 15b64d51da48807c5f896f17b33d8c0d054c9461 (patch) | |
tree | b8f585ad5a1741b26540184ec29ec2a26fc4060f /helpers/url_test.go | |
parent | 148fedd227b8f4f5af8f72cb6841653140f82dfe (diff) | |
download | hugo-15b64d51da48807c5f896f17b33d8c0d054c9461.tar.gz hugo-15b64d51da48807c5f896f17b33d8c0d054c9461.zip |
all: Propagate baseURL error to the callers
Diffstat (limited to 'helpers/url_test.go')
-rw-r--r-- | helpers/url_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helpers/url_test.go b/helpers/url_test.go index b53e2e6cc..499388259 100644 --- a/helpers/url_test.go +++ b/helpers/url_test.go @@ -28,7 +28,7 @@ func TestURLize(t *testing.T) { v := viper.New() l := NewDefaultLanguage(v) - p := NewPathSpec(hugofs.NewMem(v), l) + p, _ := NewPathSpec(hugofs.NewMem(v), l) tests := []struct { input string @@ -89,7 +89,7 @@ func doTestAbsURL(t *testing.T, defaultInSubDir, addLanguage, multilingual bool, for _, test := range tests { v.Set("baseURL", test.baseURL) l := NewLanguage(lang, v) - p := NewPathSpec(hugofs.NewMem(v), l) + p, _ := NewPathSpec(hugofs.NewMem(v), l) output := p.AbsURL(test.input, addLanguage) expected := test.expected @@ -167,7 +167,7 @@ func doTestRelURL(t *testing.T, defaultInSubDir, addLanguage, multilingual bool, v.Set("baseURL", test.baseURL) v.Set("canonifyURLs", test.canonify) l := NewLanguage(lang, v) - p := NewPathSpec(hugofs.NewMem(v), l) + p, _ := NewPathSpec(hugofs.NewMem(v), l) output := p.RelURL(test.input, addLanguage) @@ -255,7 +255,7 @@ func TestURLPrep(t *testing.T) { v := viper.New() v.Set("uglyURLs", d.ugly) l := NewDefaultLanguage(v) - p := NewPathSpec(hugofs.NewMem(v), l) + p, _ := NewPathSpec(hugofs.NewMem(v), l) output := p.URLPrep(d.input) if d.output != output { |