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 b039535
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/assets-controllers/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
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 b039535

Please sign in to comment.