codimd/test/testDoubles/loggerFake.js
BoHong Li a6036cb70b
refactor: back to use js-standard
Signed-off-by: BoHong Li <a60814billy@gmail.com>
2019-05-27 17:53:08 +08:00

16 lines
259 B
JavaScript

'use strict'
const sinon = require('sinon')
function createFakeLogger () {
return {
error: sinon.stub(),
warn: sinon.stub(),
info: sinon.stub(),
debug: sinon.stub(),
log: sinon.stub()
}
}
exports.createFakeLogger = createFakeLogger