Skip to content

Commit

Permalink
Uncomment failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Dec 7, 2023
1 parent 4992b15 commit dd7ea6c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/assets-controllers/src/TokenDetectionController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,21 +271,21 @@ describe('TokenDetectionController', () => {
expect(tokensController.state.detectedTokens).toStrictEqual([sampleTokenA]);
});

// it('should detect tokens correctly on the Aurora network', async () => {
// const auroraMainnet = {
// chainId: ChainId.aurora,
// type: NetworkType.mainnet,
// ticker: 'Aurora ETH',
// };
// preferences.update({ selectedAddress: '0x1' });
// changeNetwork(auroraMainnet);

// getBalancesInSingleCall.resolves({
// [sampleTokenA.address]: new BN(1),
// });
// await tokenDetection.start();
// expect(tokensController.state.detectedTokens).toStrictEqual([sampleTokenA]);
// });
it('should detect tokens correctly on the Aurora network', async () => {
const auroraMainnet = {
chainId: ChainId.aurora,
type: NetworkType.mainnet,
ticker: 'Aurora ETH',
};
preferences.update({ selectedAddress: '0x1' });
changeNetwork(auroraMainnet);

getBalancesInSingleCall.resolves({
[sampleTokenA.address]: new BN(1),
});
await tokenDetection.start();
expect(tokensController.state.detectedTokens).toStrictEqual([sampleTokenA]);
});

it('should update detectedTokens when new tokens are detected', async () => {
preferences.update({ selectedAddress: '0x1' });
Expand Down

0 comments on commit dd7ea6c

Please sign in to comment.