Test case for #837

This commit is contained in:
kpdecker
2014-08-11 20:09:39 -05:00
parent 2f14fa57e5
commit ae44e071d8
+8
View File
@@ -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');
});
});