Skip to content

Commit b039535

Browse files
committed
Fix test to avoid using deprecated aurora network
1 parent 3e63502 commit b039535

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/assets-controllers/jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = merge(baseConfig, {
1717
// An object that configures minimum threshold enforcement for coverage results
1818
coverageThreshold: {
1919
global: {
20-
branches: 88.54,
20+
branches: 88.22,
2121
functions: 95.66,
2222
lines: 96.46,
2323
statements: 96.52,

packages/assets-controllers/src/TokenDetectionController.test.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,15 @@ describe('TokenDetectionController', () => {
284284
expect(tokensController.state.detectedTokens).toStrictEqual([sampleTokenA]);
285285
});
286286

287-
it('should detect tokens correctly on the Aurora network', async () => {
288-
const auroraMainnet = {
289-
chainId: ChainId.aurora,
290-
type: NetworkType.mainnet,
291-
ticker: 'Aurora ETH',
287+
it('should detect tokens correctly on the Polygon network', async () => {
288+
const polygonRpc = {
289+
chainId: SupportedTokenDetectionNetworks.polygon,
290+
type: NetworkType.rpc,
291+
ticker: 'Polygon ETH',
292292
};
293293
const selectedAddress = '0x1';
294294
preferences.update({ selectedAddress });
295-
changeNetwork(auroraMainnet);
295+
changeNetwork(polygonRpc);
296296

297297
await tokenDetection.start();
298298

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

303303
await tokenDetection.detectTokens({
304304
accountAddress: selectedAddress,
305-
networkClientId: ChainId.aurora,
305+
networkClientId: SupportedTokenDetectionNetworks.polygon,
306306
});
307307
expect(tokensController.state.detectedTokens).toStrictEqual([sampleTokenA]);
308308
});

0 commit comments

Comments
 (0)