add account settings page, rest of otp support, stdio credential helper, other misc
[squeep-authentication-module] / test / stub-logger.js
1 'use strict';
2
3 const sinon = require('sinon'); // eslint-disable-line node/no-unpublished-require
4
5 const stubLogger = process.env.VERBOSE_TESTS ? console : {
6 debug: () => undefined,
7 error: () => undefined,
8 info: () => undefined,
9 };
10 stubLogger['_reset'] = () => {
11 sinon.spy(stubLogger, 'debug');
12 sinon.spy(stubLogger, 'error');
13 sinon.spy(stubLogger, 'info');
14 };
15
16
17 module.exports = stubLogger;