diff --git a/packages/backend/src/asset/service.test.ts b/packages/backend/src/asset/service.test.ts index 54828ad1d2..079aa3ea9b 100644 --- a/packages/backend/src/asset/service.test.ts +++ b/packages/backend/src/asset/service.test.ts @@ -74,24 +74,17 @@ describe('Asset Service', (): void => { test('Asset accounts are created', async (): Promise => { const accountingService = await deps.use('accountingService') - const liquiditySpy = jest.spyOn( + const liquidityAndSettlementSpy = jest.spyOn( accountingService, - 'createLiquidityAccount' - ) - const settlementSpy = jest.spyOn( - accountingService, - 'createSettlementAccount' + 'createLiquidityAndLinkedSettlementAccount' ) const asset = await assetService.create(randomAsset()) assert.ok(!isAssetError(asset)) - expect(liquiditySpy).toHaveBeenCalledWith( + expect(liquidityAndSettlementSpy).toHaveBeenCalledWith( asset, LiquidityAccountType.ASSET, - expect.any(Function) - ) - expect(settlementSpy).toHaveBeenCalledWith( asset.ledger, expect.any(Function) )