Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
✅ Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Vlasák committed Oct 23, 2019
1 parent 2d4c86d commit 0380956
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ test('can create default logger', () => {
test('can create named logger', () => {
const logger = loggerFactory('myApp');
expect(logger).toBeDefined();
expect((logger.options as any).loggerName).toBe('myApp');
});

test('can create logger with options', () => {
const logger = loggerFactory({ pretty: true });
expect(logger).toBeDefined();
expect(logger.options.pretty).toBe(true);
});

const testWriteStream = (resolve, assert) => ({
Expand Down

0 comments on commit 0380956

Please sign in to comment.