diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-03-10 03:49:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-10 03:49:48 +0800 |
commit | 7d0363e950fd734053a55baf713047793a34dd7f (patch) | |
tree | 8e1f863d9c0b79b8f9d0073d2cb7ab28216dddba /test | |
parent | 51b806797a3e20f96e3b3ee9ef13f07a4e00d494 (diff) | |
parent | ae795c977012f152ae96b160fcb8c1e3996904fa (diff) | |
download | tangerine-wallet-browser-7d0363e950fd734053a55baf713047793a34dd7f.tar tangerine-wallet-browser-7d0363e950fd734053a55baf713047793a34dd7f.tar.gz tangerine-wallet-browser-7d0363e950fd734053a55baf713047793a34dd7f.tar.bz2 tangerine-wallet-browser-7d0363e950fd734053a55baf713047793a34dd7f.tar.lz tangerine-wallet-browser-7d0363e950fd734053a55baf713047793a34dd7f.tar.xz tangerine-wallet-browser-7d0363e950fd734053a55baf713047793a34dd7f.tar.zst tangerine-wallet-browser-7d0363e950fd734053a55baf713047793a34dd7f.zip |
Merge pull request #3497 from MetaMask/testing
Persist rinkeby.infura.io and clean nock after
Diffstat (limited to 'test')
-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 () { |