From 0e607fe9f59db86298ca7da1aa2afbe3f00792ee Mon Sep 17 00:00:00 2001 From: "raymond.lam" Date: Wed, 10 May 2017 08:34:12 -0400 Subject: [PATCH] add test to address #589 specifically --- test/_files/dot_notation.js | 3 ++- test/_files/dot_notation.mustache | 1 + test/_files/dot_notation.txt | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/_files/dot_notation.js b/test/_files/dot_notation.js index de06a03..955651f 100644 --- a/test/_files/dot_notation.js +++ b/test/_files/dot_notation.js @@ -19,5 +19,6 @@ truthy: { zero: 0, notTrue: false - } + }, + singletonList: [{singletonItem: "singleton item"}] }) diff --git a/test/_files/dot_notation.mustache b/test/_files/dot_notation.mustache index f64e350..1ef2209 100644 --- a/test/_files/dot_notation.mustache +++ b/test/_files/dot_notation.mustache @@ -8,4 +8,5 @@

Zero: {{truthy.zero}}

False: {{truthy.notTrue}}

length of string should be rendered: {{price.currency.name.length}}

+

length of string in a list should be rendered: {{#singletonList}}{{singletonItem.length}}{{/singletonList}}

length of an array should be rendered: {{authors.length}}

diff --git a/test/_files/dot_notation.txt b/test/_files/dot_notation.txt index f982a75..c71ab27 100644 --- a/test/_files/dot_notation.txt +++ b/test/_files/dot_notation.txt @@ -8,4 +8,5 @@

Zero: 0

False: false

length of string should be rendered: 3

+

length of string in a list should be rendered: 14

length of an array should be rendered: 2