From 73eccbf25f42f340cbac0bb7892a3d32fce8b7aa Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Mon, 18 Dec 2023 12:36:29 -0800 Subject: [PATCH] test: remove unnecessary `.start()` calls --- .../src/TokenDetectionController.test.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/assets-controllers/src/TokenDetectionController.test.ts b/packages/assets-controllers/src/TokenDetectionController.test.ts index 97dc290475..6fc0710a5c 100644 --- a/packages/assets-controllers/src/TokenDetectionController.test.ts +++ b/packages/assets-controllers/src/TokenDetectionController.test.ts @@ -355,11 +355,8 @@ describe('TokenDetectionController', () => { it('should not add ignoredTokens to the tokens list if detected with balance', async () => { preferences.setSelectedAddress('0x0001'); - changeNetwork(mainnet); - await tokenDetection.start(); - await tokensController.addToken({ address: sampleTokenA.address, symbol: sampleTokenA.symbol, @@ -390,8 +387,6 @@ describe('TokenDetectionController', () => { preferences.setSelectedAddress('0x0001'); changeNetwork(mainnet); - await tokenDetection.start(); - await tokensController.addToken({ address: sampleTokenA.address, symbol: sampleTokenA.symbol, @@ -413,8 +408,6 @@ describe('TokenDetectionController', () => { preferences.update({ selectedAddress: '0x1' }); changeNetwork(mainnet); - await tokenDetection.start(); - getBalancesInSingleCall.resolves({ [sampleTokenA.address]: new BN(1), }); @@ -428,7 +421,6 @@ describe('TokenDetectionController', () => { }); it('should not detect tokens if there is no selectedAddress set', async () => { - await tokenDetection.start(); getBalancesInSingleCall.resolves({ [sampleTokenA.address]: new BN(1), });