Skip to content

Commit

Permalink
fix: test fix attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
vpbs2 committed Aug 26, 2024
1 parent a7074f5 commit 0a70c8b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions meerkat-dbm/src/dbm/__test__/dbm-parallel.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import log from 'loglevel';
import { FileManagerType } from '../../file-manager/file-manager-type';
import { DBMLogger } from '../../logger/logger-types';
import { BROWSER_RUNNER_TYPE } from '../../window-communication/runner-types';
import { DBMParallel } from '../dbm-parallel/dbm-parallel';
import { IFrameRunnerManager } from '../dbm-parallel/runner-manager';
Expand All @@ -15,6 +15,12 @@ const iFrameRunnerManager: IFrameRunnerManager = {
iFrameManagers: new Map(),
};

const loggerMock = {
debug: jest.fn(),
error: jest.fn(),
info: jest.fn(),
} as unknown as DBMLogger;

const runnerMock = {
communication: {
sendRequest: jest.fn(),
Expand All @@ -37,7 +43,7 @@ describe('DBMParallel', () => {
beforeEach(() => {
dbmParallel = new DBMParallel({
fileManager,
logger: log,
logger: loggerMock,
options: { shutdownInactiveTime: 1000 },
iFrameRunnerManager,
instanceManager: instanceManager,
Expand Down

0 comments on commit 0a70c8b

Please sign in to comment.