summaryrefslogtreecommitdiff
path: root/specs/inverted.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/inverted.yml')
-rw-r--r--specs/inverted.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/specs/inverted.yml b/specs/inverted.yml
index 5f8e2b2..148b3f5 100644
--- a/specs/inverted.yml
+++ b/specs/inverted.yml
@@ -46,6 +46,12 @@ tests:
template: '"{{^boolean}}This should not be rendered.{{/boolean}}"'
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: { context: { name: 'Joe' } }