Skip to content

Commit e07829e

Browse files
feat(payment): INT-6675 [Digital River] Comment resolved
1 parent 7a00933 commit e07829e

File tree

1 file changed

+17
-26
lines changed

1 file changed

+17
-26
lines changed

packages/core/src/payment/strategies/digitalriver/digitalriver-payment-strategy.spec.ts

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,21 @@ describe('DigitalRiverPaymentStrategy', () => {
425425
methodId: 'paypal'
426426
}
427427
}
428+
429+
const owner = {
430+
address: {
431+
city: "Minnetonka",
432+
country: "US",
433+
line1: "10380 Bren Road W",
434+
postalCode: "55343",
435+
state: "MN"
436+
},
437+
438+
firstName: "John",
439+
lastName: "Doe",
440+
phoneNumber: "000-000-0000"
441+
};
442+
428443
jest.spyOn(digitalRiverLoadResponse, 'createDropin').mockImplementation(configuration => {
429444
onSuccessCallback = configuration.onSuccess;
430445

@@ -436,19 +451,7 @@ describe('DigitalRiverPaymentStrategy', () => {
436451
source: {
437452
id: '1',
438453
reusable: false,
439-
owner: {
440-
address: {
441-
city: "Minnetonka",
442-
country: "US",
443-
line1: "10380 Bren Road W",
444-
postalCode: "55343",
445-
state: "MN"
446-
},
447-
448-
firstName: "John",
449-
lastName: "Doe",
450-
phoneNumber: "000-000-0000"
451-
}
454+
owner: owner
452455
},
453456
readyForStorage: true,
454457
});
@@ -471,19 +474,7 @@ describe('DigitalRiverPaymentStrategy', () => {
471474
source: {
472475
id: '1',
473476
reusable: false,
474-
owner: {
475-
address: {
476-
city: "Minnetonka",
477-
country: "US",
478-
line1: "10380 Bren Road W",
479-
postalCode: "55343",
480-
state: "MN"
481-
},
482-
483-
firstName: "John",
484-
lastName: "Doe",
485-
phoneNumber: "000-000-0000"
486-
}
477+
owner: owner
487478
},
488479
readyForStorage: true,
489480
},

0 commit comments

Comments
 (0)