Skip to content

Commit 5116d00

Browse files
committed
test: fix logger init
1 parent 37d17ab commit 5116d00

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
import { ok, strictEqual } from 'node:assert';
1+
import { strictEqual } from 'node:assert';
22
import { describe, it } from 'node:test';
33

44
import { Logger } from '../index.mjs';
55

66
describe('Logger singleton', () => {
77
it('should return the same instance on multiple calls', () => {
8+
Logger.init('console');
9+
810
const logger1 = Logger.getInstance();
911
const logger2 = Logger.getInstance();
1012

1113
strictEqual(logger1, logger2);
1214
});
13-
14-
it('should create an instance of logger', () => {
15-
const logger = Logger.getInstance();
16-
17-
ok(logger);
18-
});
1915
});

0 commit comments

Comments
 (0)