Skip to content

Commit

Permalink
Fix test to avoid using deprecated aurora network
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Dec 11, 2023
1 parent 3e63502 commit 64c5308
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/assets-controllers/src/TokenDetectionController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,15 @@ 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',
it('should detect tokens correctly on the Polygon network', async () => {
const polygonRpc = {
chainId: SupportedTokenDetectionNetworks.polygon,
type: NetworkType.rpc,
ticker: 'Polygon ETH',
};
const selectedAddress = '0x1';
preferences.update({ selectedAddress });
changeNetwork(auroraMainnet);
changeNetwork(polygonRpc);

await tokenDetection.start();

Expand All @@ -302,7 +302,7 @@ describe('TokenDetectionController', () => {

await tokenDetection.detectTokens({
accountAddress: selectedAddress,
networkClientId: ChainId.aurora,
networkClientId: SupportedTokenDetectionNetworks.polygon,
});
expect(tokensController.state.detectedTokens).toStrictEqual([sampleTokenA]);
});
Expand Down

0 comments on commit 64c5308

Please sign in to comment.