Added increased code coverage of wlogger

This commit is contained in:
Chris Troutner
2021-07-11 08:48:58 -07:00
parent eae2b05aad
commit 0da7b705c9
11 changed files with 50 additions and 14 deletions
@@ -0,0 +1,30 @@
// const assert = require('chai').assert
const {
notifyRotation,
outputToConsole
} = require('../../../src/adapters/wlogger')
const sinon = require('sinon')
// let uut
let sandbox
describe('#wlogger.js', () => {
beforeEach(() => {
sandbox = sinon.createSandbox()
})
afterEach(() => sandbox.restore())
describe('#notifyRotation', () => {
it('should notify of a log rotation', () => {
notifyRotation()
})
})
describe('#envronment', () => {
it('should write to console in non-test environment', () => {
outputToConsole()
})
})
})