const noExpectedException = 'did not get expected exception';
+const _nop = () => {};
+const _logFn = (process.env['VERBOSE_TESTS'] && console.log) || _nop;
const noLogger = {
- debug: () => {},
- error: () => {},
+ debug: _logFn,
+ error: _logFn,
};
+sinon.spy(noLogger, 'debug');
+sinon.spy(noLogger, 'error');
describe('Dingus', function () {
let dingus;