@@ -12,6 +12,7 @@ describe('paymentTypeIcons', () => {
1212 paymentTypeLogoGooglePay : { uri : 'google-pay-icon.png' } ,
1313 paymentTypeLogoIdeal : { uri : 'ideal-icon.png' } ,
1414 paymentTypeLogoInterac : { uri : 'interac-icon.png' } ,
15+ paymentTypeLogoKlarna : { uri : 'klarna-icon.png' } ,
1516 paymentTypeLogoPayid : { uri : 'payid-icon.png' } ,
1617 paymentTypeLogoPaypal : { uri : 'paypal-icon.png' } ,
1718 paymentTypeLogoPix : { uri : 'pix-icon.png' } ,
@@ -24,6 +25,7 @@ describe('paymentTypeIcons', () => {
2425 expect ( getPaymentTypeThemeKey ( 'applepay' ) ) . toBe ( 'paymentTypeLogoApplePay' )
2526 expect ( getPaymentTypeThemeKey ( 'credit' ) ) . toBe ( 'paymentTypeLogoCreditCard' )
2627 expect ( getPaymentTypeThemeKey ( 'paypal' ) ) . toBe ( 'paymentTypeLogoPaypal' )
28+ expect ( getPaymentTypeThemeKey ( 'klarna' ) ) . toBe ( 'paymentTypeLogoKlarna' )
2729 } )
2830
2931 it ( 'should return bank transfer key for fallback payment types' , ( ) => {
@@ -41,6 +43,9 @@ describe('paymentTypeIcons', () => {
4143 expect ( getPaymentTypeIcon ( 'credit' , mockTheme ) ) . toEqual ( {
4244 uri : 'credit-card-icon.png'
4345 } )
46+ expect ( getPaymentTypeIcon ( 'klarna' , mockTheme ) ) . toEqual ( {
47+ uri : 'klarna-icon.png'
48+ } )
4449 } )
4550
4651 it ( 'should return bank transfer icon for fallback payment types' , ( ) => {
0 commit comments