mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Simplify network controller unit test setup (#18901)
* Simplify network controller unit test setup The network controller unit tests have been refactored to simplify the setup steps related to the controller messenger. The messenger is now constructed by the `withController` helper function, rather than being manually setup in each test that references it. Relates to https://github.com/MetaMask/core/issues/1197 * Bring tests closer in alignment to core The function to build default controller constructor parameters has been removed, bringing these tests closer in alignment to the core tests.
This commit is contained in:
parent
2face84177
commit
483ffdb5c0