Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Jan 8, 2025
1 parent b34b594 commit 1e383c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ describe('Incoming Payment Routes', (): void => {
await expect(incomingPaymentRoutes.get(ctx)).resolves.toBeUndefined()
expect(ctx.response).toSatisfyApiSpec()
expect(ctx.body).toEqual({
authServer: config.authServerGrantUrl,
authServer: config.authServerGrantUrl + '/' + config.operatorTenantId, // TODO: replace with incoming payment tenant id
receivedAmount: {
value: '0',
assetCode: asset.code,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('Remote Incoming Payment Service', (): void => {

expect(incomingPayment).toStrictEqual(mockedIncomingPayment)
expect(grantGetOrCreateSpy).toHaveBeenCalledWith({
authServer: walletAddress.authServer,
authServer: walletAddress.authServer + '/' + Config.operatorTenantId, // TODO: replace with wallet address tenant id once wallet addresses are tenanted
accessType: AccessType.IncomingPayment,
accessActions: [AccessAction.Create, AccessAction.ReadAll]
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function createIncomingPayment(
walletAddress.resourceServer ?? new URL(walletAddress.id).origin

const grantOptions = {
authServer: `${walletAddress.authServer}/cf5fd7d3-1eb1-4041-8e43-ba45747e9e5d`, // TODO: update with wallet address tenant id when tenanted wallet addresses are in
authServer: `${walletAddress.authServer}/${deps.config.operatorTenantId}`, // TODO: update with wallet address tenant id when tenanted wallet addresses are in
accessType: AccessType.IncomingPayment,
accessActions: [AccessAction.Create, AccessAction.ReadAll]
}
Expand Down

0 comments on commit 1e383c1

Please sign in to comment.