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