1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers/network/provider-api-tests
Elliot Winkler bf851a56a4
Align network client tests with core repo (#17904)
When the network client tests in this repo were copied over to the core
repo, some alterations were made. This commit copies them back to this
repo so that the two test suites are easier to compare to each other.
Changes include:

* Extracting `testsFor*` functions (functions that bundle similar tests
  together) into separate files
* Reordering the tests defined in
  `testsForRpcMethodsThatCheckForBlockHashInResponse`
* Reordering the set of RPC methods listed in `shared-tests.js`
* Reordering the type definitions defined in `shared-tests.js` to be
  closer to the functions that use them
* Updating the tests defined in `testsForRpcMethodSupportingBlockParam`
  so that when they make requests they pass params, even if it's just an
  empty array
2023-03-20 10:50:52 -06:00
..
block-hash-in-response.js Align network client tests with core repo (#17904) 2023-03-20 10:50:52 -06:00
block-param.js Align network client tests with core repo (#17904) 2023-03-20 10:50:52 -06:00
helpers.js Align network client tests with core repo (#17904) 2023-03-20 10:50:52 -06:00
no-block-param.js Align network client tests with core repo (#17904) 2023-03-20 10:50:52 -06:00
not-handled-by-middleware.js Align network client tests with core repo (#17904) 2023-03-20 10:50:52 -06:00
shared-tests.js Align network client tests with core repo (#17904) 2023-03-20 10:50:52 -06:00