diff options
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 1774bbf..fe4866a 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -130,6 +130,11 @@ test("nested paths with empty string value", function() { "Goodbye world!", "Nested paths access nested objects with empty string"); }); +test("literal paths", function() { + shouldCompileTo("Goodbye {{[@alan]/expression}} world!", {"@alan": {expression: "beautiful"}}, + "Goodbye beautiful world!", "Literal paths can be used"); +}); + test("--- TODO --- bad idea nested paths", function() { return; var hash = {goodbyes: [{text: "goodbye"}, {text: "Goodbye"}, {text: "GOODBYE"}], world: "world"}; @@ -940,5 +945,4 @@ test("when inside a block in String mode, .. passes the appropriate context in t }, {helpers: helpers}); equals(result, "STOP ME FROM READING HACKER NEWS I need-a dad.joke wot", "Proper context variable output"); -}); - +});
\ No newline at end of file |