Skip to content

Commit 0aa54f4

Browse files
committed
Avoid log output in test
1 parent 1f11cc0 commit 0aa54f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/builtins.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,17 @@ describe('builtin helpers', function() {
321321
});
322322
it('should handle missing logger', function() {
323323
var string = '{{log blah}}';
324-
var hash = { blah: 'whee' };
324+
var hash = { blah: 'whee' },
325+
called = false;
325326

326327
console.error = undefined;
328+
console.log = function(log) {
329+
equals('whee', log);
330+
called = true;
331+
};
327332

328333
shouldCompileTo(string, [hash,,,, {level: '03'}], '');
334+
equals(true, called);
329335
});
330336

331337
it('should handle string log levels', function() {

0 commit comments

Comments
 (0)