Skip to content

Commit

Permalink
fix: updating tests based on new DefaultLogger constructor signature
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Long <kmlong1183@gmail.com>
  • Loading branch information
kevinmlong committed Dec 21, 2024
1 parent 587bf1a commit 3149620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/test/logger-hook.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GeneralError } from '../src/errors';
import type { HookContext } from '../src/hooks/hooks';
import { LoggingHook } from '../src/hooks/logging-hook';
import { DefaultLogger, SafeLogger } from '../src/logger';
import { DefaultLogger, LOG_LEVELS, LogLevel, SafeLogger } from '../src/logger';

describe('LoggingHook', () => {
const FLAG_KEY = 'some-key';
Expand All @@ -21,7 +21,7 @@ describe('LoggingHook', () => {
const ERROR_MESSAGE_KEY = 'error_message';

let hookContext: HookContext;
const logger : SafeLogger = new SafeLogger(new DefaultLogger(true, true));
const logger : SafeLogger = new SafeLogger(new DefaultLogger(LogLevel.DEBUG));

beforeEach(() => {
const mockProviderMetaData = { name: PROVIDER_NAME };
Expand Down

0 comments on commit 3149620

Please sign in to comment.