projects
/
squeep-authentication-module
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update devDependencies, fix lint issues
[squeep-authentication-module]
/
test
/
stub-logger.js
diff --git
a/test/stub-logger.js
b/test/stub-logger.js
index d731db37ea2a03c7202c5ba1afb36f1b6c526911..a6e787e89a1dd68cc509a190d5859d1e0d8c3874 100644
(file)
--- a/
test/stub-logger.js
+++ b/
test/stub-logger.js
@@
-1,12
+1,11
@@
'use strict';
'use strict';
-const sinon = require('sinon');
// eslint-disable-line node/no-unpublished-require
+const sinon = require('sinon');
-const nop = () => { /* */ };
const stubLogger = process.env.VERBOSE_TESTS ? console : {
const stubLogger = process.env.VERBOSE_TESTS ? console : {
- debug:
nop
,
- error:
nop
,
- info:
nop
,
+ debug:
() => undefined
,
+ error:
() => undefined
,
+ info:
() => undefined
,
};
stubLogger['_reset'] = () => {
sinon.spy(stubLogger, 'debug');
};
stubLogger['_reset'] = () => {
sinon.spy(stubLogger, 'debug');