mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service.git
synced 2026-09-21 16:52:03 -07:00
31 lines
583 B
JavaScript
31 lines
583 B
JavaScript
// 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()
|
|
})
|
|
})
|
|
})
|