1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/app/scripts/controllers/network
Mark Stacey 7d77554f3b
Refactor: Construct the network controller within each test (#17199)
The network controller is now constructed within each network
controller unit test, rather than in the `beforeEach`. This allows us
to customize the constructor options in each test, which some planned
future tests will require.

The controller is constructed with a helper function that also handles
calling `destroy` after each test, even if the test failed. This helps
to prevent tests from affecting each other.

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2023-01-17 19:58:16 -03:30
..
provider-api-tests Add tests for custom JSON-RPC network client (#16337) 2023-01-06 10:10:17 -07:00
createInfuraClient.js Update eth-json-rpc-infura (#15845) 2022-09-15 14:41:18 -02:30
createInfuraClient.test.js Add tests for custom JSON-RPC network client (#16337) 2023-01-06 10:10:17 -07:00
createJsonRpcClient.js Add tests for custom JSON-RPC network client (#16337) 2023-01-06 10:10:17 -07:00
createJsonRpcClient.test.js Add tests for custom JSON-RPC network client (#16337) 2023-01-06 10:10:17 -07:00
index.js Rename the network controller module (#16974) 2022-12-16 16:37:06 -03:30
network-controller.js Fix NetworkController destroy before initialization (#17136) 2023-01-11 15:26:33 -03:30
network-controller.test.js Refactor: Construct the network controller within each test (#17199) 2023-01-17 19:58:16 -03:30