Avoid error in older browsers in test

The tests are run through the transpiler and just reverting the user of template literal is easier than adding transpiler to the test stack.
This commit is contained in:
kpdecker
2015-12-12 17:09:24 -06:00
parent 871c32a6f9
commit a6121cae79
+7 -9
View File
@@ -260,14 +260,12 @@ describe('Regressions', function() {
}
};
shouldCompileTo(`
{{#each array}}
1. IF: {{#if true}}{{../name}}-{{../../name}}-{{../../../name}}{{/if}}
2. MYIF: {{#myif true}}{{../name}}={{../../name}}={{../../../name}}{{/myif}}
{{/each}}
`, [obj, helpers], `
1. IF: John--
2. MYIF: John==
`);
shouldCompileTo(
'{{#each array}}\n'
+ ' 1. IF: {{#if true}}{{../name}}-{{../../name}}-{{../../../name}}{{/if}}\n'
+ ' 2. MYIF: {{#myif true}}{{../name}}={{../../name}}={{../../../name}}{{/myif}}\n'
+ '{{/each}}', [obj, helpers],
' 1. IF: John--\n'
+ ' 2. MYIF: John==\n');
});
});