From d01ea18b709526a3e2396a769f8f6d478770a58b Mon Sep 17 00:00:00 2001 From: Blair Currey <12960453+BlairCurrey@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:36:13 -0400 Subject: [PATCH] refactor(backend): implement openapi request changes --- .../payment/incoming_remote/service.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/open_payments/payment/incoming_remote/service.test.ts b/packages/backend/src/open_payments/payment/incoming_remote/service.test.ts index 946c190e29..41f26e9087 100644 --- a/packages/backend/src/open_payments/payment/incoming_remote/service.test.ts +++ b/packages/backend/src/open_payments/payment/incoming_remote/service.test.ts @@ -149,11 +149,12 @@ describe('Remote Incoming Payment Service', (): void => { expect(incomingPayment).toStrictEqual(mockedIncomingPayment) expect(clientCreateIncomingPaymentSpy).toHaveBeenCalledWith( { - walletAddress: walletAddress.id, + url: walletAddress.id, accessToken: grant.accessToken }, { ...args, + walletAddress: walletAddress.id, expiresAt: args.expiresAt ? args.expiresAt.toISOString() : undefined, @@ -230,13 +231,14 @@ describe('Remote Incoming Payment Service', (): void => { expect(incomingPayment).toStrictEqual(mockedIncomingPayment) expect(clientCreateIncomingPaymentSpy).toHaveBeenCalledWith( { - walletAddress: walletAddress.id, + url: walletAddress.id, accessToken: grant.expired ? newToken.access_token.value : grant.accessToken }, { ...args, + walletAddress: walletAddress.id, expiresAt: args.expiresAt ? args.expiresAt.toISOString() : undefined, @@ -316,11 +318,12 @@ describe('Remote Incoming Payment Service', (): void => { }) expect(clientCreateIncomingPaymentSpy).toHaveBeenCalledWith( { - walletAddress: walletAddress.id, + url: walletAddress.id, accessToken: grant.access_token.value }, { ...args, + walletAddress: walletAddress.id, expiresAt: args.expiresAt ? args.expiresAt.toISOString() : undefined,