test/style: use nyc instead of istanbul, npm audit fix

This commit is contained in:
Nils Knappmeier
2019-12-12 23:04:35 +01:00
committed by Nils Knappmeier
parent 3a5b65e02b
commit 1ebce2b53c
7 changed files with 902 additions and 262 deletions
+17
View File
@@ -710,6 +710,23 @@ describe('builtin helpers', function() {
shouldCompileTo(string, hash, '');
equals(true, called);
});
it('should pass zero log arguments', function() {
var string = '{{log}}';
var hash = { blah: 'whee' };
var called;
console.info = console.log = function() {
expect(arguments.length).to.equal(0);
called = true;
console.log = $log;
};
expectTemplate(string)
.withInput(hash)
.toCompileTo('');
expect(called).to.be.true();
});
/* eslint-enable no-console */
});