mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
fix invalid function signature for event data extraction
Additionally fix specs
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
const { expect } = require('chai')
|
||||
const winston = require('winston')
|
||||
|
||||
const utils = require('../lib/utils')
|
||||
|
||||
@ -152,25 +151,4 @@ describe('utils', () => {
|
||||
.to.equal(422)
|
||||
})
|
||||
})
|
||||
|
||||
describe('logging', () => {
|
||||
it('should create console transport for logging in dev mode', () => {
|
||||
expect(utils.createTransports(true)[0])
|
||||
.to.be.instanceOf(winston.transports.Console)
|
||||
})
|
||||
|
||||
|
||||
it('should NOT create console transport for logging in undefined mode', () => {
|
||||
const transports = utils.createTransports()
|
||||
|
||||
expect(transports).to.have.length(1)
|
||||
expect(transports[0]).to.be.instanceOf(winston.transports.DailyRotateFile)
|
||||
})
|
||||
|
||||
|
||||
it('should create log rotate transport for logging in dev mode', () => {
|
||||
expect(utils.createTransports(true)[1])
|
||||
.to.be.instanceOf(winston.transports.DailyRotateFile)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user