1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00
metamask-extension/app
Mark Stacey db2e461416
Add tests for retryOnEmpty middleware (#17364)
* Add tests for `retryOnEmpty` middleware

Tests have been added for the `retryOnEmpty` middleware.

This middleware is only used on the Infura network client, so the tests
that demonstrate this retry behavior are only enabled for the `infura`
provider type.

Most of the tests added were to cover cases where the retry middleware
is skipped, so they were applicable for both provider types.

Closes #17004

* Improve readability of block number tests

The test cases for passing a block number parameter have been made more
readable. Specifically, a comment has been added each time params are
built to call attention to the block parameter and what value it has,
so that it's clear whether it's larger or smaller than the current
block number.

Additionally the blocks for "less than the current block number" and
"equal to the current block number" have been combined using
`describe.each`.
2023-02-01 16:33:26 -03:30
..
_locales Onboarding V2: Remove old onboarding flow (#17081) 2023-02-01 09:28:09 -06:00
build-types BETA - Update to sentence case (#16590) 2022-11-21 08:44:46 -06:00
fonts
images icon audit, remove xxs icon size (#17089) 2023-01-24 09:39:46 -08:00
manifest Restore support for Chromium v78 (#17251) 2023-01-23 12:36:48 -03:30
scripts Add tests for retryOnEmpty middleware (#17364) 2023-02-01 16:33:26 -03:30
vendor/trezor
background.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
home.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
loading.html
notification.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
popup.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
trezor-usb-permissions.html