Skip to content

Commit

Permalink
Test case for #837
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Aug 15, 2014
1 parent f2b5519 commit 74fa359
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/regressions.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,12 @@ describe('Regressions', function() {
it('GH-820: zero pathed rendering', function() {
shouldCompileTo('{{foo.bar}}', {foo: 0}, '');
});

it('GH-837: undefined values for helpers', function() {
var helpers = {
str: function(value) { return value + ''; }
};

shouldCompileTo('{{str bar.baz}}', [{}, helpers], 'undefined');
});
});

0 comments on commit 74fa359

Please sign in to comment.