1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-21 17:37:01 +01:00
metamask-extension/app
Elliot Winkler 7e97ff2be4
Expand network controller unit test coverage (#17498)
The network controller has some tests, but they are incomplete and don't
follow our latest best practices for writing unit tests.

This commit greatly increases the amount of test coverage for the API
that we want to retain in NetworkController, in particular the seemingly
myriad paths that the code takes starting from `initializeProvider`,
`resetConnection`, `setRpcTarget`, `setProviderType`,
`rollbackToPreviousProvider`, and `lookupNetwork`.

There were a couple of pieces of logic I noted which don't seem to have
any effect due to being redundant or unreachable, but they also don't
make our lives more difficult, either, so I opted to leave them in.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Zachary Belford <belfordz66@gmail.com>
2023-02-08 13:10:04 -07:00
..
_locales Add hardcoded list of human-readable snap derivation paths (#17627) 2023-02-06 21:49:56 +01:00
build-types Add desktop build type (#17592) 2023-02-08 09:24:01 +00:00
fonts UI-14395: typography v2 (#15408) 2022-08-18 10:51:53 -07:00
images add double arrow icons (#17654) 2023-02-08 13:10:07 +05:30
manifest Restore support for Chromium v78 (#17251) 2023-01-23 12:36:48 -03:30
scripts Expand network controller unit test coverage (#17498) 2023-02-08 13:10:04 -07:00
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
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 refactor & change html pages 2019-05-04 18:57:19 +02:00
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 chore: Adjust trailing whitespace (#15636) 2022-08-24 14:11:49 -05:00