Persist rinkeby.infura.io and clean nock after

feature/default_network_editable
Thomas 7 years ago
parent ca047b1ea0
commit ae795c9770
  1. 10
      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 () {

Loading…
Cancel
Save