diff options
Diffstat (limited to 'spec/regressions.js')
-rw-r--r-- | spec/regressions.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/regressions.js b/spec/regressions.js index 009fec9..e8942a4 100644 --- a/spec/regressions.js +++ b/spec/regressions.js @@ -196,4 +196,11 @@ describe('Regressions', function() { shouldCompileToWithPartials(root, [{}, helpers, partials], true, '<partial>'); }); + + it('GH-1065: Sparse arrays', function() { + var array = []; + array[1] = 'foo'; + array[3] = 'bar'; + shouldCompileTo('{{#each array}}{{@index}}{{.}}{{/each}}', {array: array}, '1foo3bar'); + }); }); |