diff options
author | Julian Gonggrijp <dev@juliangonggrijp.com> | 2021-04-23 12:50:36 +0200 |
---|---|---|
committer | Julian Gonggrijp <dev@juliangonggrijp.com> | 2021-04-23 12:50:36 +0200 |
commit | 300984b04c0c1efafc75f4dcf7f7af5b64952882 (patch) | |
tree | c4ed164d059b68e929948dd36dfeaaa572f7a400 /specs/sections.json | |
parent | aad6725ea0ca928c50bde433a953fa094d1fd5e7 (diff) | |
download | mustache-spec-300984b04c0c1efafc75f4dcf7f7af5b64952882.tar.gz |
Specify null handling in (inverted) sections (@Danappelxx comment #123)
Diffstat (limited to 'specs/sections.json')
-rw-r--r-- | specs/sections.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/specs/sections.json b/specs/sections.json index 73eb2a4..3acc414 100644 --- a/specs/sections.json +++ b/specs/sections.json @@ -21,6 +21,15 @@ "expected": "\"\"" }, { + "name": "Null is falsey", + "desc": "Null is falsey.", + "data": { + "null": null + }, + "template": "\"{{#null}}This should not be rendered.{{/null}}\"", + "expected": "\"\"" + }, + { "name": "Context", "desc": "Objects and hashes should be pushed onto the context stack.", "data": { |