Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
add type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mathysth committed Jan 28, 2024
1 parent 37ccdee commit a99c9c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ describe("AppLogger", () => {

it("Should initialize pino", () => {
const appLogger = container.get<AppLogger>(SERVICE_IDENTIFIER.Logger);
// Checking type
expect(appLogger).toBeInstanceOf(AppLogger);
expect(appLogger.pino).toBeDefined();
expect(appLogger.config).toBeDefined();
});
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/inversify.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ describe('Inversify binding test', () => {
it('Should resolve appLogger', () => {
const appLogger = container.get<AppLogger>(SERVICE_IDENTIFIER.Logger);
expect(appLogger).toBeDefined();
// Checking type
expect(appLogger).toBeInstanceOf(AppLogger);
});
});

0 comments on commit a99c9c0

Please sign in to comment.