1
0
Fork 0
cautious-journey/test/logger/TestBunyanLogger.ts

14 lines
337 B
TypeScript
Raw Normal View History

2020-08-15 04:40:56 +00:00
import bunyan from 'bunyan';
import { expect } from 'chai';
import { BunyanLogger } from '../../src/logger/bunyan';
describe('bunyan logger', async () => {
it('should create a logger', async () => {
const logger = BunyanLogger.create({
name: 'test-logger',
});
expect(logger).to.be.an.instanceOf(bunyan);
});
});