From b5a1667398c34f899b530214398acec9724f3aa6 Mon Sep 17 00:00:00 2001 From: koekiebox Date: Wed, 11 Dec 2024 14:58:20 +0100 Subject: [PATCH] feat(3114): fix asset service.test.ts --- packages/backend/src/asset/service.test.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/backend/src/asset/service.test.ts b/packages/backend/src/asset/service.test.ts index ccff2233e8..64b4c79a5e 100644 --- a/packages/backend/src/asset/service.test.ts +++ b/packages/backend/src/asset/service.test.ts @@ -21,13 +21,11 @@ import { isWalletAddressError } from '../open_payments/wallet_address/errors' import { PeerService } from '../payment-method/ilp/peer/service' import { isPeerError } from '../payment-method/ilp/peer/errors' import { CacheDataStore } from '../middleware/cache/data-stores' -import { TenantService } from '../tenants/service' describe('Asset Service', (): void => { let deps: IocContract let appContainer: TestContainer let assetService: AssetService - let tenantService: TenantService let peerService: PeerService let walletAddressService: WalletAddressService @@ -274,17 +272,10 @@ describe('Asset Service', (): void => { assert.ok(!isAssetError(newAsset)) const newAssetId = newAsset.id - const newTenant = await tenantService.create({ - email: 'test@tenent.za', - apiSecret: 'secret', - idpSecret: 'idpSecret', - idpConsentUrl: 'idpConsentUrl' - }) - // make sure there is at least 1 wallet address using asset const walletAddress = walletAddressService.create({ url: 'https://alice.me/.well-known/pay', - tenantId: newTenant.id, + tenantId: Config.operatorTenantId, assetId: newAssetId }) assert.ok(!isWalletAddressError(walletAddress))