Skip to content

Commit

Permalink
Avoid error in older browsers in test
Browse files Browse the repository at this point in the history
The tests are run through the transpiler and just reverting the user of template literal is easier than adding transpiler to the test stack.
  • Loading branch information
kpdecker committed Dec 12, 2015
1 parent 871c32a commit a6121ca
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions spec/regressions.js
Expand Up @@ -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');
});
});

0 comments on commit a6121ca

Please sign in to comment.