Another typecheck fix

This commit is contained in:
Iván Ovejero 2024-11-07 13:32:12 +01:00
parent 584cb6ab8c
commit e4532a92b5
No known key found for this signature in database

View file

@ -12,7 +12,7 @@ describe('TaskBroker', () => {
let taskBroker: TaskBroker;
beforeEach(() => {
taskBroker = new TaskBroker(mock());
taskBroker = new TaskBroker(mock(), mock());
jest.restoreAllMocks();
});
@ -201,7 +201,7 @@ describe('TaskBroker', () => {
jest.spyOn(taskBroker, 'acceptOffer').mockResolvedValue(); // allow Jest to exit cleanly
taskBroker.taskRequested(request);
await taskBroker.taskRequested(request);
expect(taskBroker.acceptOffer).toHaveBeenCalled();
expect(taskBroker.getPendingTaskOffers()).toHaveLength(0);