Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Nov 12, 2024
1 parent ecf4d19 commit 4554864
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions app/scripts/controllers/bridge/bridge-controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,13 @@ describe('BridgeController', function () {
expect(stopAllPollingSpy).toHaveBeenCalledTimes(1);
expect(startPollingByNetworkClientIdSpy).toHaveBeenCalledTimes(1);
expect(hasSufficientBalanceSpy).toHaveBeenCalledTimes(1);
expect(startPollingByNetworkClientIdSpy).toHaveBeenCalledWith('0x1', {
...quoteRequest,
insufficientBal: false,
});
expect(startPollingByNetworkClientIdSpy).toHaveBeenCalledWith(
expect.anything(),
{
...quoteRequest,
insufficientBal: false,
},
);

expect(bridgeController.state.bridgeState).toStrictEqual(
expect.objectContaining({
Expand Down Expand Up @@ -425,10 +428,13 @@ describe('BridgeController', function () {
expect(stopAllPollingSpy).toHaveBeenCalledTimes(1);
expect(startPollingByNetworkClientIdSpy).toHaveBeenCalledTimes(1);
expect(hasSufficientBalanceSpy).toHaveBeenCalledTimes(1);
expect(startPollingByNetworkClientIdSpy).toHaveBeenCalledWith('0x1', {
...quoteRequest,
insufficientBal: true,
});
expect(startPollingByNetworkClientIdSpy).toHaveBeenCalledWith(
expect.anything(),
{
...quoteRequest,
insufficientBal: true,
},
);

expect(bridgeController.state.bridgeState).toStrictEqual(
expect.objectContaining({
Expand Down

0 comments on commit 4554864

Please sign in to comment.