Skip to content

Commit ca34da1

Browse files
feat(payment): PAYPAL-5941 test
1 parent ddfe8fe commit ca34da1

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

packages/paypal-commerce-integration/src/paypal-commerce-credit/paypal-commerce-credit-button-strategy.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ describe('PayPalCommerceCreditButtonStrategy', () => {
468468
},
469469
},
470470
});
471+
471472
const paymentMethodWithShippingOptionsFeature = {
472473
...paymentMethod,
473474
initializationData: {

packages/paypal-commerce-integration/src/paypal-commerce-credit/paypal-commerce-credit-customer-strategy.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ describe('PayPalCommerceCreditCustomerStrategy', () => {
6060
};
6161

6262
const storeConfig = getConfig().storeConfig;
63+
6364
beforeEach(() => {
6465
eventEmitter = new EventEmitter();
6566

packages/paypal-commerce-integration/src/paypal-commerce/paypal-commerce-button-strategy.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ describe('PayPalCommerceButtonStrategy', () => {
454454
},
455455
},
456456
});
457+
457458
const paymentMethodWithShippingOptionsFeature = {
458459
...paymentMethod,
459460
initializationData: {
@@ -830,6 +831,7 @@ describe('PayPalCommerceButtonStrategy', () => {
830831
},
831832
},
832833
});
834+
833835
const address = {
834836
firstName: '',
835837
lastName: '',
@@ -898,6 +900,7 @@ describe('PayPalCommerceButtonStrategy', () => {
898900
},
899901
},
900902
});
903+
901904
const consignment = getConsignment();
902905

903906
// INFO: lets imagine that it is a state that we get after consignmentActionCreator.selectShippingOption call

packages/paypal-commerce-integration/src/paypal-commerce/paypal-commerce-button-strategy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export default class PayPalCommerceButtonStrategy implements CheckoutButtonStrat
9696
paypalcommerce: PayPalCommerceButtonInitializeOptions,
9797
): void {
9898
const { buyNowInitializeOptions, style, onComplete, onEligibilityFailure } = paypalcommerce;
99+
99100
console.log('RENDER');
100101

101102
const paypalSdk = this.paypalCommerceIntegrationService.getPayPalSdkOrThrow();
@@ -107,8 +108,8 @@ export default class PayPalCommerceButtonStrategy implements CheckoutButtonStrat
107108

108109
const defaultCallbacks = {
109110
...(this.isPaypalCommerceAppSwitchEnabled(methodId) && {
110-
appSwitchWhenAvailable: true,
111-
}),
111+
appSwitchWhenAvailable: true,
112+
}),
112113
createOrder: () => this.paypalCommerceIntegrationService.createOrder('paypalcommerce'),
113114
onApprove: ({ orderID }: ApproveCallbackPayload) =>
114115
this.paypalCommerceIntegrationService.tokenizePayment(methodId, orderID),

0 commit comments

Comments
 (0)