diff options
author | kpdecker <kpdecker@gmail.com> | 2015-08-03 12:13:00 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2015-08-03 12:13:00 -0500 |
commit | 0aa54f49de111d117e7d3b4a21e99b9fcaf483d1 (patch) | |
tree | b7b44497c2073e2eb0e09677492932851a68ff76 /spec/builtins.js | |
parent | 1f11cc0186e22fa7073e64b8d2ffa4d5e4b32b59 (diff) | |
download | handlebars.js-0aa54f49de111d117e7d3b4a21e99b9fcaf483d1.zip handlebars.js-0aa54f49de111d117e7d3b4a21e99b9fcaf483d1.tar.gz handlebars.js-0aa54f49de111d117e7d3b4a21e99b9fcaf483d1.tar.bz2 |
Avoid log output in test
Diffstat (limited to 'spec/builtins.js')
-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() { |