From 0531fd4794b92d97f7399f39f5ed892ea4cf5812 Mon Sep 17 00:00:00 2001 From: Brian Bergeron Date: Tue, 1 Oct 2024 17:45:27 -0700 Subject: [PATCH] fix unit test --- .../src/UserOperationController.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/user-operation-controller/src/UserOperationController.test.ts b/packages/user-operation-controller/src/UserOperationController.test.ts index 0a0b921584..027fbb1fcd 100644 --- a/packages/user-operation-controller/src/UserOperationController.test.ts +++ b/packages/user-operation-controller/src/UserOperationController.test.ts @@ -137,7 +137,7 @@ function createBundlerMock() { */ function createPendingUserOperationTrackerMock() { return { - startPollingByNetworkClientId: jest.fn(), + startPolling: jest.fn(), setIntervalLength: jest.fn(), hub: new EventEmitter(), } as unknown as jest.Mocked; @@ -1318,7 +1318,7 @@ describe('UserOperationController', () => { pendingUserOperationTrackerMock.startPolling, ).toHaveBeenCalledTimes(1); expect(pendingUserOperationTrackerMock.startPolling).toHaveBeenCalledWith( - NETWORK_CLIENT_ID_MOCK, + { networkClientId: NETWORK_CLIENT_ID_MOCK }, ); }); });