From 1dcc6094dcc455b457e332041ff1c68af5653722 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Wed, 27 Sep 2023 15:52:39 +0200 Subject: [PATCH] chore: updating some test mocks --- packages/open-payments/src/client/incoming-payment.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/open-payments/src/client/incoming-payment.test.ts b/packages/open-payments/src/client/incoming-payment.test.ts index 808bbc44..99b64490 100644 --- a/packages/open-payments/src/client/incoming-payment.test.ts +++ b/packages/open-payments/src/client/incoming-payment.test.ts @@ -49,7 +49,7 @@ describe('incoming-payment', (): void => { describe('getIncomingPayment', (): void => { test('returns incoming payment if passes validation', async (): Promise => { - const incomingPayment = mockIncomingPayment() + const incomingPayment = mockIncomingPaymentWithPaymentMethods() nock(walletAddress) .get('/incoming-payments/1') @@ -67,7 +67,7 @@ describe('incoming-payment', (): void => { }) test('throws if incoming payment does not pass validation', async (): Promise => { - const incomingPayment = mockIncomingPayment({ + const incomingPayment = mockIncomingPaymentWithPaymentMethods({ incomingAmount: { assetCode: 'USD', assetScale: 2, @@ -100,7 +100,7 @@ describe('incoming-payment', (): void => { }) test('throws if incoming payment does not pass open api validation', async (): Promise => { - const incomingPayment = mockIncomingPayment() + const incomingPayment = mockIncomingPaymentWithPaymentMethods() nock(walletAddress) .get('/incoming-payments/1')