mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Reset all Jest mocks in NetworkController tests (#19295)
This makes it possible to test that mock functions are called the correct amount of times (otherwise Jest will think that a mock function has been called for as many tests as exist in the NetworkController unit test suite).
This commit is contained in:
parent
7753364958
commit
b387a6e795
@ -153,6 +153,7 @@ describe('NetworkController', () => {
|
||||
nock.enableNetConnect('localhost');
|
||||
nock.cleanAll();
|
||||
resetAllWhenMocks();
|
||||
jest.resetAllMocks();
|
||||
});
|
||||
|
||||
describe('constructor', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user