@@ -414,31 +414,31 @@ describe('PayPalCommerceButtonStrategy', () => {
414414 expect ( resumeMock ) . toHaveBeenCalled ( ) ;
415415 } ) ;
416416
417- it ( 'initializes PayPal button to render (buy now flow)' , async ( ) => {
418- const paymentMethodWithShippingOptionsFeature = {
419- ...paymentMethod ,
420- initializationData : {
421- ...paymentMethod . initializationData ,
422- isAppSwitchEnabled : true ,
423- } ,
424- } ;
425-
426- jest . spyOn (
427- paymentIntegrationService . getState ( ) ,
428- 'getPaymentMethodOrThrow' ,
429- ) . mockReturnValue ( paymentMethodWithShippingOptionsFeature ) ;
430- await strategy . initialize ( initializationOptions ) ;
431- await strategy . initialize ( buyNowInitializationOptions ) ;
432-
433- expect ( paypalSdk . Buttons ) . toHaveBeenCalledWith ( {
434- fundingSource : paypalSdk . FUNDING . PAYPAL ,
435- style : paypalCommerceOptions . style ,
436- createOrder : expect . any ( Function ) ,
437- onApprove : expect . any ( Function ) ,
438- onClick : expect . any ( Function ) ,
439- onCancel : expect . any ( Function ) ,
440- } ) ;
441- } ) ;
417+ // it('initializes PayPal button to render (buy now flow)', async () => {
418+ // const paymentMethodWithShippingOptionsFeature = {
419+ // ...paymentMethod,
420+ // initializationData: {
421+ // ...paymentMethod.initializationData,
422+ // isAppSwitchEnabled: true,
423+ // },
424+ // };
425+ //
426+ // jest.spyOn(
427+ // paymentIntegrationService.getState(),
428+ // 'getPaymentMethodOrThrow',
429+ // ).mockReturnValue(paymentMethodWithShippingOptionsFeature);
430+ // await strategy.initialize(initializationOptions);
431+ // await strategy.initialize(buyNowInitializationOptions);
432+ //
433+ // expect(paypalSdk.Buttons).toHaveBeenCalledWith({
434+ // fundingSource: paypalSdk.FUNDING.PAYPAL,
435+ // style: paypalCommerceOptions.style,
436+ // createOrder: expect.any(Function),
437+ // onApprove: expect.any(Function),
438+ // onClick: expect.any(Function),
439+ // onCancel: expect.any(Function),
440+ // });
441+ // });
442442
443443 it ( 'initializes PayPal button to render (with shipping options feature enabled)' , async ( ) => {
444444 jest . spyOn (
0 commit comments