Skip to content

Commit 20e9ea3

Browse files
committed
update start polling method name in test to reflect change on pollingController mixin
1 parent 312415b commit 20e9ea3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/gas-fee-controller/src/GasFeeController.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,8 @@ describe('GasFeeController', () => {
917917
});
918918
});
919919

920-
describe('polling', () => {
921-
it('should call determineGasFeeCalculations with a URL that contains the chain ID after the interval passed via the constructor', async () => {
920+
describe('polling (by networkClientId)', () => {
921+
it('should call determineGasFeeCalculations (via executePoll) with a URL that contains the chain ID after the interval passed via the constructor', async () => {
922922
const pollingInterval = 10000;
923923
await setupGasFeeController({
924924
getIsEIP1559Compatible: jest.fn().mockResolvedValue(false),
@@ -941,7 +941,7 @@ describe('GasFeeController', () => {
941941
interval: pollingInterval,
942942
});
943943

944-
gasFeeController.start('goerli');
944+
gasFeeController.startPollingByNetworkClientId('goerli');
945945
await clock.tickAsync(pollingInterval / 2);
946946
expect(mockedDetermineGasFeeCalculations).not.toHaveBeenCalled();
947947
await clock.tickAsync(pollingInterval / 2);

0 commit comments

Comments
 (0)