Skip to content

Commit

Permalink
Remove redundant const assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes committed May 27, 2021
1 parent eef42b6 commit ab4d6a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/assets/TokenRatesController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,20 @@ describe('TokenRatesController', () => {
{ interval: 10 },
);
const address = '0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359';
const address2 = ADDRESS;
expect(controller.state.contractExchangeRates).toStrictEqual({});
controller.tokens = [
{ address, decimals: 18, symbol: 'DAI' },
{ address: address2, decimals: 0, symbol: '' },
{ address: ADDRESS, decimals: 0, symbol: '' },
];
await controller.updateExchangeRates();
expect(Object.keys(controller.state.contractExchangeRates)).toContain(
address,
);
expect(controller.state.contractExchangeRates[address]).toBeGreaterThan(0);
expect(Object.keys(controller.state.contractExchangeRates)).toContain(
address2,
ADDRESS,
);
expect(controller.state.contractExchangeRates[address2]).toStrictEqual(0);
expect(controller.state.contractExchangeRates[ADDRESS]).toStrictEqual(0);
});

it('should handle balance not found in API', async () => {
Expand Down

0 comments on commit ab4d6a1

Please sign in to comment.