Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
# Conflicts:
#	processor/tests/routes/processor.route.spec.ts
  • Loading branch information
NghiaDTr committed Dec 11, 2024
1 parent 9c5680a commit ba3966a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions processor/tests/routes/processor.route.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
createCustomPaymentInterfaceInteractionType,
createCustomPaymentTransactionCancelReasonType,
createTransactionSurchargeCustomType,
createTransactionRefundForMolliePaymentCustomType,
} from '../../src/commercetools/customFields.commercetools';

jest.mock('../../src/commercetools/extensions.commercetools', () => ({
Expand All @@ -20,6 +21,7 @@ jest.mock('../../src/commercetools/customFields.commercetools', () => ({
createCustomPaymentInterfaceInteractionType: jest.fn(),
createCustomPaymentTransactionCancelReasonType: jest.fn(),
createTransactionSurchargeCustomType: jest.fn(),
createTransactionRefundForMolliePaymentCustomType: jest.fn(),
}));

describe('Test src/route/processor.route.ts', () => {
Expand Down Expand Up @@ -112,6 +114,7 @@ describe('Test src/route/processor.route.ts', () => {
(createCustomPaymentInterfaceInteractionType as jest.Mock).mockReturnValueOnce(Promise.resolve());
(createCustomPaymentTransactionCancelReasonType as jest.Mock).mockReturnValueOnce(Promise.resolve());
(createTransactionSurchargeCustomType as jest.Mock).mockReturnValueOnce(Promise.resolve());
(createTransactionRefundForMolliePaymentCustomType as jest.Mock).mockReturnValueOnce(Promise.resolve());

req = {
hostname: 'test.com',
Expand Down

0 comments on commit ba3966a

Please sign in to comment.