Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Oct 2, 2024
1 parent 222314b commit 0531fd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<PendingUserOperationTrackerHelper.PendingUserOperationTracker>;
Expand Down Expand Up @@ -1318,7 +1318,7 @@ describe('UserOperationController', () => {
pendingUserOperationTrackerMock.startPolling,
).toHaveBeenCalledTimes(1);
expect(pendingUserOperationTrackerMock.startPolling).toHaveBeenCalledWith(
NETWORK_CLIENT_ID_MOCK,
{ networkClientId: NETWORK_CLIENT_ID_MOCK },
);
});
});
Expand Down

0 comments on commit 0531fd4

Please sign in to comment.