projects
/
squeep-api-dingus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move fileScope to separate module, update dependencies and devDependencies
[squeep-api-dingus]
/
test
/
lib
/
dingus.js
diff --git
a/test/lib/dingus.js
b/test/lib/dingus.js
index 9d471229d3a26ebde87ebfae9d53efbde46c9aaa..5690dcf4522dd0aa182300bc7b3423140736f668 100644
(file)
--- a/
test/lib/dingus.js
+++ b/
test/lib/dingus.js
@@
-12,10
+12,14
@@
const Enum = require('../../lib/enum');
const noExpectedException = 'did not get expected exception';
const noExpectedException = 'did not get expected exception';
+const _nop = () => {};
+const _logFn = (process.env['VERBOSE_TESTS'] && console.log) || _nop;
const noLogger = {
const noLogger = {
- debug:
() => {}
,
- error:
() => {}
,
+ debug:
_logFn
,
+ error:
_logFn
,
};
};
+sinon.spy(noLogger, 'debug');
+sinon.spy(noLogger, 'error');
describe('Dingus', function () {
let dingus;
describe('Dingus', function () {
let dingus;