summaryrefslogtreecommitdiff
path: root/specs/inverted.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/inverted.yml')
-rw-r--r--specs/inverted.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/specs/inverted.yml b/specs/inverted.yml
index 29d1bac..1e2c4fd 100644
--- a/specs/inverted.yml
+++ b/specs/inverted.yml
@@ -31,15 +31,15 @@ tests:
- name: Doubled
desc: Multiple inverted sections per template should be permitted.
- data: { t: false, two: 'second' }
+ data: { bool: false, two: 'second' }
template: |
- {{^t}}
+ {{^bool}}
* first
- {{/t}}
+ {{/bool}}
* {{two}}
- {{^t}}
+ {{^bool}}
* third
- {{/t}}
+ {{/bool}}
expected: |
* first
* second
@@ -47,14 +47,14 @@ tests:
- name: Nested (Falsey)
desc: Nested falsey sections should have their contents rendered.
- data: { t: false }
- template: "| A {{^t}}B {{^t}}C{{/t}} D{{/t}} E |"
+ data: { bool: false }
+ template: "| A {{^bool}}B {{^bool}}C{{/bool}} D{{/bool}} E |"
expected: "| A B C D E |"
- name: Nested (Truthy)
desc: Nested truthy sections should be omitted.
- data: { t: true }
- template: "| A {{^t}}B {{^t}}C{{/t}} D{{/t}} E |"
+ data: { bool: true }
+ template: "| A {{^bool}}B {{^bool}}C{{/bool}} D{{/bool}} E |"
expected: "| A E |"
# Whitespace Sensitivity