Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Feb 12, 2025
1 parent e78dab7 commit 8cdc9eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/bridge-controller/src/bridge-controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,11 @@ describe('BridgeController', function () {
// Setup
const mockMessenger = {
call: jest.fn().mockImplementation((methodName) => {
// eslint-disable-next-line jest/no-conditional-in-test
if (methodName === 'NetworkController:getNetworkClientById') {
return { provider: null };
}
// eslint-disable-next-line jest/no-conditional-in-test
if (methodName === 'NetworkController:getState') {
return { selectedNetworkClientId: 'testNetworkClientId' };
}
Expand Down Expand Up @@ -803,7 +805,7 @@ describe('BridgeController', function () {
// Verify state wasn't updated due to abort
expect(bridgeController.state.bridgeState.quoteFetchError).toBeUndefined();
expect(bridgeController.state.bridgeState.quotesLoadingStatus).toBe(0);
expect(bridgeController.state.bridgeState.quotes).toEqual([]);
expect(bridgeController.state.bridgeState.quotes).toStrictEqual([]);

// Test reset abort
fetchBridgeQuotesSpy.mockRejectedValueOnce('Reset controller state');
Expand All @@ -816,6 +818,6 @@ describe('BridgeController', function () {
// Verify state wasn't updated due to reset
expect(bridgeController.state.bridgeState.quoteFetchError).toBeUndefined();
expect(bridgeController.state.bridgeState.quotesLoadingStatus).toBe(0);
expect(bridgeController.state.bridgeState.quotes).toEqual([]);
expect(bridgeController.state.bridgeState.quotes).toStrictEqual([]);
});
});

0 comments on commit 8cdc9eb

Please sign in to comment.