File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
client/express-checkout/blocks/__tests__ Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,22 @@ describe( 'Express checkout blocks registration', () => {
168168 expect ( result ) . toBe ( false ) ;
169169 expect ( checkPaymentMethodIsAvailable ) . not . toHaveBeenCalled ( ) ;
170170 } ) ;
171+
172+ it ( 'should return false for Google Pay (defaults to empty array)' , ( ) => {
173+ const result = expressCheckoutElementGooglePay (
174+ mockApi
175+ ) . canMakePayment ( { cart : mockCart } ) ;
176+ expect ( result ) . toBe ( false ) ;
177+ expect ( checkPaymentMethodIsAvailable ) . not . toHaveBeenCalled ( ) ;
178+ } ) ;
179+
180+ it ( 'should return false for Amazon Pay (defaults to empty array)' , ( ) => {
181+ const result = expressCheckoutElementAmazonPay (
182+ mockApi
183+ ) . canMakePayment ( { cart : mockCart } ) ;
184+ expect ( result ) . toBe ( false ) ;
185+ expect ( checkPaymentMethodIsAvailable ) . not . toHaveBeenCalled ( ) ;
186+ } ) ;
171187 } ) ;
172188 } ) ;
173189} ) ;
You can’t perform that action at this time.
0 commit comments