@@ -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