Skip to content

Commit

Permalink
MOL-134/PICT-214: add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tdang1-shopmacher committed Aug 1, 2024
1 parent 5a8dab5 commit c85f21f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions processor/tests/service/payment.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ describe('Test listPaymentMethodsByPayment', () => {
});

let mockResource: Payment;
let mockResponse: Record<string, any>;

test('call listPaymentMethodsByPayment with valid object reference', async () => {
(listPaymentMethods as jest.Mock).mockReturnValueOnce([
Expand Down Expand Up @@ -195,17 +194,6 @@ describe('Test listPaymentMethodsByPayment', () => {
} as unknown as CustomFields,
} as unknown as Payment;

mockResponse = {
statusCode: 200,
actions: [
{
action: 'setCustomField',
name: 'sctm_payment_methods_response',
value: '{"methods":[]}',
},
],
};

const response = await handleListPaymentMethodsByPayment(mockResource);

expect(response).toBeDefined();
Expand Down

0 comments on commit c85f21f

Please sign in to comment.