Skip to content

Commit e936e2e

Browse files
committed
Address more cases
1 parent 65f8f3c commit e936e2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1727,12 +1727,12 @@ describe('TokenRatesController', () => {
17271727
expect(fetchTokenPricesSpy).toHaveBeenCalledTimes(2);
17281728
expect(fetchTokenPricesSpy).toHaveBeenNthCalledWith(1, {
17291729
chainId,
1730-
tokenContractAddresses: tokenAddresses.slice(0, 100),
1730+
tokenAddresses: tokenAddresses.slice(0, 100),
17311731
currency: ticker,
17321732
});
17331733
expect(fetchTokenPricesSpy).toHaveBeenNthCalledWith(2, {
17341734
chainId,
1735-
tokenContractAddresses: tokenAddresses.slice(100),
1735+
tokenAddresses: tokenAddresses.slice(100),
17361736
currency: ticker,
17371737
});
17381738
},
@@ -2007,12 +2007,12 @@ describe('TokenRatesController', () => {
20072007
expect(fetchTokenPricesSpy).toHaveBeenCalledTimes(2);
20082008
expect(fetchTokenPricesSpy).toHaveBeenNthCalledWith(1, {
20092009
chainId,
2010-
tokenContractAddresses: tokenAddresses.slice(0, 100),
2010+
tokenAddresses: tokenAddresses.slice(0, 100),
20112011
currency: 'ETH',
20122012
});
20132013
expect(fetchTokenPricesSpy).toHaveBeenNthCalledWith(2, {
20142014
chainId,
2015-
tokenContractAddresses: tokenAddresses.slice(100),
2015+
tokenAddresses: tokenAddresses.slice(100),
20162016
currency: 'ETH',
20172017
});
20182018
},
@@ -2100,12 +2100,12 @@ describe('TokenRatesController', () => {
21002100
const fetchTokenPricesMock = jest.fn().mockResolvedValue({
21012101
[tokenAddresses[0]]: {
21022102
currency: 'ETH',
2103-
tokenContractAddress: tokenAddresses[0],
2103+
tokenAddress: tokenAddresses[0],
21042104
value: 0.001,
21052105
},
21062106
[tokenAddresses[1]]: {
21072107
currency: 'ETH',
2108-
tokenContractAddress: tokenAddresses[1],
2108+
tokenAddress: tokenAddresses[1],
21092109
value: 0.002,
21102110
},
21112111
});

0 commit comments

Comments
 (0)