mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
util.interpolation: Add commented test case for passing nil to filter
This commit is contained in:
parent
e0e0b24f00
commit
a7579e93f5
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ describe("util.interpolation", function ()
|
|||
assert.equal(expect3, render(template, { name = "you" }));
|
||||
assert.equal(expect_array, render(template_array, { foo = { "Hello", "World" } }));
|
||||
assert.equal(expect_func_pipe, render(template_func_pipe, { foo = { "c", "a", "d", "b", } }));
|
||||
-- assert.equal("", render(template_func_pipe, { foo = nil })); -- FIXME
|
||||
assert.equal(expect_map, render(template_map, { foo = { foo = "bar" } }));
|
||||
end);
|
||||
end);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue