diff options
Persist rinkeby.infura.io and clean nock after
-rw-r--r-- | test/unit/network-contoller-test.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js index 51ad09f87..dd0b52365 100644 --- a/test/unit/network-contoller-test.js +++ b/test/unit/network-contoller-test.js @@ -15,11 +15,8 @@ describe('# Network Controller', function () { beforeEach(function () { - nock('https://api.infura.io') - .get('/*/') - .reply(200) - nock('https://rinkeby.infura.io') + .persist() .post('/metamask') .reply(200) @@ -29,6 +26,11 @@ describe('# Network Controller', function () { networkController.initializeProvider(networkControllerProviderInit, provider) }) + + afterEach(function () { + nock.cleanAll() + }) + describe('network', function () { describe('#provider', function () { it('provider should be updatable without reassignment', function () { |