Skip to content

Commit 7b817af

Browse files
committed
test(backend): update wallet address route test
1 parent 076fbd0 commit 7b817af

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

packages/backend/src/open_payments/wallet_address/routes.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ describe('Wallet Address Routes', (): void => {
148148
{ walletAddressNotFoundPollingEnabled: true },
149149
async (): Promise<void> => {
150150
const walletAddress = await createWalletAddress(deps, {
151-
tenantId: config.operatorTenantId,
152151
publicName: faker.person.firstName()
153152
})
154153

@@ -161,19 +160,18 @@ describe('Wallet Address Routes', (): void => {
161160
headers: { Accept: 'application/json' },
162161
url: '/'
163162
})
164-
ctx.walletAddressUrl = walletAddress.address
163+
ctx.walletAddressUrl = walletAddress.url
165164
await expect(walletAddressRoutes.get(ctx)).resolves.toBeUndefined()
166165
expect(ctx.response).toSatisfyApiSpec()
167166
expect(getOrPollByUrlSpy).toHaveBeenCalledTimes(1)
168167
expect(getByUrlSpy).not.toHaveBeenCalled()
169168
expect(ctx.body).toEqual({
170-
id: walletAddress.address,
169+
id: walletAddress.url,
171170
publicName: walletAddress.publicName,
172171
assetCode: walletAddress.asset.code,
173172
assetScale: walletAddress.asset.scale,
174-
// Ensure the tenant id is returned for auth and resource server:
175-
authServer: `${config.authServerGrantUrl}/${walletAddress.tenantId}`,
176-
resourceServer: `${config.openPaymentsUrl}/${walletAddress.tenantId}`
173+
authServer: config.authServerGrantUrl,
174+
resourceServer: config.openPaymentsUrl
177175
})
178176
}
179177
)

0 commit comments

Comments
 (0)