summaryrefslogtreecommitdiff
path: root/specs/inverted.json
diff options
context:
space:
mode:
Diffstat (limited to 'specs/inverted.json')
-rw-r--r--specs/inverted.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/specs/inverted.json b/specs/inverted.json
index d9a7c15..5e881d1 100644
--- a/specs/inverted.json
+++ b/specs/inverted.json
@@ -21,6 +21,15 @@
"expected": "\"\""
},
{
+ "name": "Null is falsey",
+ "desc": "Null is falsey.",
+ "data": {
+ "null": null
+ },
+ "template": "\"{{^null}}This should be rendered.{{/null}}\"",
+ "expected": "\"This should be rendered.\""
+ },
+ {
"name": "Context",
"desc": "Objects and hashes should behave like truthy values.",
"data": {