Skip to content

Commit

Permalink
Merge pull request #660 from Tony133/test/fix-bull-explorer-test
Browse files Browse the repository at this point in the history
test(bull-explorer): fix test
  • Loading branch information
kamilmysliwiec committed Jan 11, 2021
2 parents f08a20c + 963b1aa commit 55baaca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/test/bull.explorer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('BullExplorer', () => {
bullExplorer = moduleRef.get(BullExplorer);
});
afterAll(async () => {
await moduleRef.get(getQueueToken('test')).close();
await moduleRef.close();
});
describe('handleProcessor', () => {
Expand Down Expand Up @@ -105,11 +104,11 @@ describe('BullExplorer', () => {
const instance = { handler: jest.fn() };
const queue = { on: jest.fn() } as any;
const opts = { eventName: 'test' } as any;

const wrapper = new InstanceWrapper();
bullExplorer.handleListener(
instance,
'handler',
new InstanceWrapper(),
wrapper,
queue,
opts,
);
Expand Down Expand Up @@ -141,4 +140,4 @@ describe('BullExplorer', () => {
await moduleRef.close();
});
});
});
});

0 comments on commit 55baaca

Please sign in to comment.