summaryrefslogtreecommitdiff
path: root/specs/interpolation.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/interpolation.yml')
-rw-r--r--specs/interpolation.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/specs/interpolation.yml b/specs/interpolation.yml
index 1b6fff1..9410a30 100644
--- a/specs/interpolation.yml
+++ b/specs/interpolation.yml
@@ -101,6 +101,24 @@ tests:
template: '"{{&power}} jiggawatts!"'
expected: '"1.21 jiggawatts!"'
+ - name: Basic Null Interpolation
+ desc: Nulls should interpolate as the empty string.
+ data: { cannot: null }
+ template: "I ({{cannot}}) be seen!"
+ expected: "I () be seen!"
+
+ - name: Triple Mustache Null Interpolation
+ desc: Nulls should interpolate as the empty string.
+ data: { cannot: null }
+ template: "I ({{{cannot}}}) be seen!"
+ expected: "I () be seen!"
+
+ - name: Ampersand Null Interpolation
+ desc: Nulls should interpolate as the empty string.
+ data: { cannot: null }
+ template: "I ({{&cannot}}) be seen!"
+ expected: "I () be seen!"
+
# Context Misses
- name: Basic Context Miss Interpolation