tpl: Make getJSON/getCVS accept non-string args

This broke for the Twitter simple shortcode now that Shortcodes accepts typed arguments.

Fixes #6382
This commit is contained in:
Bjørn Erik Pedersen
2019-10-10 10:18:30 +02:00
parent 71b18a0786
commit 0d7b05be4c
4 changed files with 40 additions and 6 deletions

View File

@@ -204,6 +204,12 @@ func TestGetJSON(t *testing.T) {
}
}
func TestJoinURL(t *testing.T) {
t.Parallel()
c := qt.New(t)
c.Assert(joinURL([]interface{}{"https://foo?id=", 32}), qt.Equals, "https://foo?id=32")
}
func TestParseCSV(t *testing.T) {
t.Parallel()
c := qt.New(t)