@@ -3,11 +3,6 @@ import { getSwapBridgeTxActivityTitle } from './transaction-history';
33import { BridgeHistoryItem } from '@metamask/bridge-status-controller' ;
44import { 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-
116describe ( '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