diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/builtins.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/builtins.js b/spec/builtins.js index 6a02dc6..bcacf59 100644 --- a/spec/builtins.js +++ b/spec/builtins.js @@ -321,11 +321,17 @@ describe('builtin helpers', function() { }); it('should handle missing logger', function() { var string = '{{log blah}}'; - var hash = { blah: 'whee' }; + var hash = { blah: 'whee' }, + called = false; console.error = undefined; + console.log = function(log) { + equals('whee', log); + called = true; + }; shouldCompileTo(string, [hash,,,, {level: '03'}], ''); + equals(true, called); }); it('should handle string log levels', function() { |