Software /
code /
prosody
Diff
spec/util_interpolation_spec.lua @ 10413:604096ce2f82
util.interpolation: Add commented test case for passing nil to filter
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 17 Nov 2019 15:32:28 +0100 |
parent | 10412:b788b5257945 |
child | 11064:af1e3b7d9ea3 |
line wrap: on
line diff
--- a/spec/util_interpolation_spec.lua Sun Nov 17 15:06:22 2019 +0100 +++ b/spec/util_interpolation_spec.lua Sun Nov 17 15:32:28 2019 +0100 @@ -41,6 +41,7 @@ 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);