14 lines
340 B
TypeScript
14 lines
340 B
TypeScript
import bunyan from 'bunyan';
|
|
import { expect } from 'chai';
|
|
|
|
import { BunyanLogger } from '../../src/logger/bunyan.js';
|
|
|
|
describe('bunyan logger', async () => {
|
|
it('should create a logger', async () => {
|
|
const logger = BunyanLogger.create({
|
|
name: 'test-logger',
|
|
});
|
|
expect(logger).to.be.an.instanceOf(bunyan);
|
|
});
|
|
});
|