Skip to content

Commit

Permalink
refactor(backend): implement openapi request changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Oct 20, 2023
1 parent b1b0941 commit d01ea18
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d01ea18

Please sign in to comment.