diff options
Diffstat (limited to 'specs/interpolation.json')
-rw-r--r-- | specs/interpolation.json | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/specs/interpolation.json b/specs/interpolation.json index 1718e1c..d422dc3 100644 --- a/specs/interpolation.json +++ b/specs/interpolation.json @@ -101,6 +101,33 @@ "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!" + }, + { "name": "Basic Context Miss Interpolation", "desc": "Failed context lookups should default to empty strings.", "data": { |