mirror of
https://github.com/status-im/codimd.git
synced 2025-01-12 09:54:12 +00:00
ff90fd0fe1
Signed-off-by: Raccoon <raccoon@hackmd.io>
23 lines
410 B
JavaScript
23 lines
410 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(),
|
|
logger: {
|
|
error: sinon.stub(),
|
|
warn: sinon.stub(),
|
|
info: sinon.stub(),
|
|
debug: sinon.stub(),
|
|
log: sinon.stub()
|
|
}
|
|
}
|
|
}
|
|
|
|
exports.createFakeLogger = createFakeLogger
|