Facebook-Events-iCal-Converter/mocks/logger.mock.js

10 lines
207 B
JavaScript

const EventEmitter = require('events')
class MockLogger extends EventEmitter {
log({ message, level, service }) {
this.emit('test:log', { message, level, service })
}
}
module.exports = MockLogger