diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-10-10 10:18:30 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-10-10 13:30:39 +0200 |
commit | 0d7b05be4cb2391cbd280f6109c01ec2d3d7e0c6 (patch) | |
tree | 47fb0303d7d43bc3d19e7e9736433b3715696b17 /hugolib/testhelpers_test.go | |
parent | 71b18a0786894893eafa01263a0915149ed303ec (diff) | |
download | hugo-0d7b05be4cb2391cbd280f6109c01ec2d3d7e0c6.tar.gz hugo-0d7b05be4cb2391cbd280f6109c01ec2d3d7e0c6.zip |
tpl: Make getJSON/getCVS accept non-string args
This broke for the Twitter simple shortcode now that Shortcodes accepts typed arguments.
Fixes #6382
Diffstat (limited to 'hugolib/testhelpers_test.go')
-rw-r--r-- | hugolib/testhelpers_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go index 353cc9ec6..2865010f0 100644 --- a/hugolib/testhelpers_test.go +++ b/hugolib/testhelpers_test.go @@ -753,7 +753,11 @@ func (th testHelper) assertFileContentRegexp(filename string, matches ...string) for _, match := range matches { match = th.replaceDefaultContentLanguageValue(match) r := regexp.MustCompile(match) - th.Assert(r.MatchString(content), qt.Equals, true) + matches := r.MatchString(content) + if !matches { + fmt.Println(content) + } + th.Assert(matches, qt.Equals, true) } } |