Avoid log output in test

This commit is contained in:
kpdecker
2015-08-03 12:13:00 -05:00
parent 1f11cc0186
commit 0aa54f49de
+7 -1
View File
@@ -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() {