ssube/cautious-journey

View on GitHub
test/logger/TestBunyanLogger.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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);
  });
});