Skip to content

Commit 2c51102

Browse files
fix: broken tests
1 parent 162e1d2 commit 2c51102

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

app/components/UI/Bridge/utils/transaction-history.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ import { getSwapBridgeTxActivityTitle } from './transaction-history';
33
import { BridgeHistoryItem } from '@metamask/bridge-status-controller';
44
import { ChainId, StatusTypes } from '@metamask/bridge-controller';
55

6-
// Mock the strings function
7-
jest.mock('../../../../../locales/i18n', () => ({
8-
strings: jest.fn((_key, params) => `bridge_to_${params.chainName}`),
9-
}));
10-
116
describe('getBridgeTxActivityTitle', () => {
127
it('should return undefined when destChainName is not found in NETWORK_TO_SHORT_NETWORK_NAME_MAP', () => {
138
const bridgeHistoryItem: BridgeHistoryItem = {
@@ -137,7 +132,7 @@ describe('getBridgeTxActivityTitle', () => {
137132
};
138133

139134
const result = getSwapBridgeTxActivityTitle(bridgeHistoryItem);
140-
expect(result).toBe('bridge_to_Optimism');
135+
expect(result).toBe('Bridge to Optimism');
141136
});
142137

143138
it('should return formatted title for Solana chain', () => {
@@ -201,6 +196,6 @@ describe('getBridgeTxActivityTitle', () => {
201196
};
202197

203198
const result = getSwapBridgeTxActivityTitle(bridgeHistoryItem);
204-
expect(result).toBe('bridge_to_Solana');
199+
expect(result).toBe('Bridge to Solana');
205200
});
206201
});

0 commit comments

Comments
 (0)