diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-17 15:32:28 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-17 15:32:28 +0100 |
commit | b3da3a365de86ff541165ccae17531aa72c23e1e (patch) | |
tree | dd1d56d0279292ab510de7dc3663d7b1a202d76a /spec/util_interpolation_spec.lua | |
parent | 39075a9a7e7b980ae42a00e05e077bd228646b4f (diff) | |
download | prosody-b3da3a365de86ff541165ccae17531aa72c23e1e.tar.gz prosody-b3da3a365de86ff541165ccae17531aa72c23e1e.zip |
util.interpolation: Add commented test case for passing nil to filter
Diffstat (limited to 'spec/util_interpolation_spec.lua')
-rw-r--r-- | spec/util_interpolation_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/util_interpolation_spec.lua b/spec/util_interpolation_spec.lua index 21d1abe0..76000d94 100644 --- a/spec/util_interpolation_spec.lua +++ b/spec/util_interpolation_spec.lua @@ -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); |