mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
Another typecheck fix
This commit is contained in:
parent
584cb6ab8c
commit
e4532a92b5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue