@@ -2947,16 +2947,16 @@ describe('CardUtils', () => {
29472947 } ,
29482948 } ;
29492949 it ( 'should return the correct description for a company card' , ( ) => {
2950- const description = getCompanyCardDescription ( 'Test' , 21310091 , cardList ) ;
2950+ const description = getCompanyCardDescription ( 'Test' , 21310091 , cardList , mockTranslate ) ;
29512951 expect ( description ) . toBe ( '480801XXXXXX2554' ) ;
29522952 } ) ;
29532953
29542954 it ( 'should return the correct description for an Expensify card' , ( ) => {
2955- const description = getCompanyCardDescription ( 'Test' , 21570657 , cardList ) ;
2955+ const description = getCompanyCardDescription ( 'Test' , 21570657 , cardList , mockTranslate ) ;
29562956 expect ( description ) . toBe ( 'Test' ) ;
29572957 } ) ;
29582958
2959- it ( 'should return "Central invoicing" for a travel card when translate is provided ' , ( ) => {
2959+ it ( 'should return "Central invoicing" for a travel card' , ( ) => {
29602960 const travelCardList = {
29612961 '99999' : {
29622962 cardID : 99999 ,
@@ -2969,20 +2969,6 @@ describe('CardUtils', () => {
29692969 const description = getCompanyCardDescription ( 'Expensify Card - 6909' , 99999 , travelCardList , mockTranslate ) ;
29702970 expect ( description ) . toBe ( 'Central invoicing' ) ;
29712971 } ) ;
2972-
2973- it ( 'should return raw card name for a travel card when translate is not provided' , ( ) => {
2974- const travelCardList = {
2975- '99999' : {
2976- cardID : 99999 ,
2977- bank : CONST . EXPENSIFY_CARD . BANK ,
2978- nameValuePairs : {
2979- feedCountry : CONST . TRAVEL . PROGRAM_TRAVEL_US ,
2980- } ,
2981- } ,
2982- } as unknown as CardList ;
2983- const description = getCompanyCardDescription ( 'Expensify Card - 6909' , 99999 , travelCardList ) ;
2984- expect ( description ) . toBe ( 'Expensify Card - 6909' ) ;
2985- } ) ;
29862972 } ) ;
29872973
29882974 describe ( 'Expensify card sort comparator' , ( ) => {
0 commit comments