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
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
createInfuraClient.js
createInfuraClient.test.js
createJsonRpcClient.js
createJsonRpcClient.test.js
index.js
network-controller.js
network-controller.test.js Refactor: Construct the network controller within each test (#17199) 2023-01-17 19:58:16 -03:30