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 12, 2014
1 parent 248ad1a commit aa280f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/regressions.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ 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');
});

if (Handlebars.AST) {
it("can pass through an already-compiled AST via compile/precompile", function() {
Expand Down

0 comments on commit aa280f3

Please sign in to comment.