Skip to content

Commit

Permalink
test: remove unnecessary .start() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Dec 18, 2023
1 parent fefc64b commit 73eccbf
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -390,8 +387,6 @@ describe('TokenDetectionController', () => {
preferences.setSelectedAddress('0x0001');
changeNetwork(mainnet);

await tokenDetection.start();

await tokensController.addToken({
address: sampleTokenA.address,
symbol: sampleTokenA.symbol,
Expand All @@ -413,8 +408,6 @@ describe('TokenDetectionController', () => {
preferences.update({ selectedAddress: '0x1' });
changeNetwork(mainnet);

await tokenDetection.start();

getBalancesInSingleCall.resolves({
[sampleTokenA.address]: new BN(1),
});
Expand All @@ -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),
});
Expand Down

0 comments on commit 73eccbf

Please sign in to comment.