summaryrefslogtreecommitdiffstats
path: root/spec/qunit_spec.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-01-13 23:43:29 -0600
committerkpdecker <kpdecker@gmail.com>2013-01-13 23:43:29 -0600
commit24fc3a2288d788488e056cbaa0f13503e2607e1b (patch)
treeed8a6513710e2e17b93ff145bcf093fd8972f209 /spec/qunit_spec.js
parent8961298859c42b3158dba7fa40b716cd2d63ef98 (diff)
downloadhandlebars.js-24fc3a2288d788488e056cbaa0f13503e2607e1b.zip
handlebars.js-24fc3a2288d788488e056cbaa0f13503e2607e1b.tar.gz
handlebars.js-24fc3a2288d788488e056cbaa0f13503e2607e1b.tar.bz2
Prevent write on all depth variables
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r--spec/qunit_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js
index f16949e..526c397 100644
--- a/spec/qunit_spec.js
+++ b/spec/qunit_spec.js
@@ -1289,8 +1289,8 @@ test('GH-408: Multiple loops fail', function() {
{ name: "Jane Doe", location: { city: "New York"} }
];
- var template = CompilerContext.compile('{{#.}}{{name}}{{/.}}{{#.}}{{name}}{{/.}}');
+ var template = CompilerContext.compile('{{#.}}{{name}}{{/.}}{{#.}}{{name}}{{/.}}{{#.}}{{name}}{{/.}}');
var result = template(context);
- equals(result, "John DoeJane DoeJohn DoeJane Doe", 'It should output twice');
+ equals(result, "John DoeJane DoeJohn DoeJane DoeJohn DoeJane Doe", 'It should output multiple times');
});