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 | a7579e93f5833154aef8d67f068064d71b5dc731 (patch) | |
tree | dd1d56d0279292ab510de7dc3663d7b1a202d76a /spec/util_interpolation_spec.lua | |
parent | e0e0b24f003bcebc564fcebeb745717a4e08b5b7 (diff) | |
download | prosody-a7579e93f5833154aef8d67f068064d71b5dc731.tar.gz prosody-a7579e93f5833154aef8d67f068064d71b5dc731.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); |