diff --git a/packages/assets-controllers/jest.config.js b/packages/assets-controllers/jest.config.js index 7c7fa8c850b..9a42d59f823 100644 --- a/packages/assets-controllers/jest.config.js +++ b/packages/assets-controllers/jest.config.js @@ -17,7 +17,7 @@ module.exports = merge(baseConfig, { // An object that configures minimum threshold enforcement for coverage results coverageThreshold: { global: { - branches: 88.54, + branches: 88.22, functions: 95.66, lines: 96.46, statements: 96.52, diff --git a/packages/assets-controllers/src/TokenDetectionController.test.ts b/packages/assets-controllers/src/TokenDetectionController.test.ts index 03892ab80a4..d99ead66450 100644 --- a/packages/assets-controllers/src/TokenDetectionController.test.ts +++ b/packages/assets-controllers/src/TokenDetectionController.test.ts @@ -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(); @@ -302,7 +302,7 @@ describe('TokenDetectionController', () => { await tokenDetection.detectTokens({ accountAddress: selectedAddress, - networkClientId: ChainId.aurora, + networkClientId: SupportedTokenDetectionNetworks.polygon, }); expect(tokensController.state.detectedTokens).toStrictEqual([sampleTokenA]); });