mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3497 from MetaMask/testing
Persist rinkeby.infura.io and clean nock after
This commit is contained in:
commit
7d0363e950
@ -15,11 +15,8 @@ describe('# Network Controller', function () {
|
|||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
|
|
||||||
nock('https://api.infura.io')
|
|
||||||
.get('/*/')
|
|
||||||
.reply(200)
|
|
||||||
|
|
||||||
nock('https://rinkeby.infura.io')
|
nock('https://rinkeby.infura.io')
|
||||||
|
.persist()
|
||||||
.post('/metamask')
|
.post('/metamask')
|
||||||
.reply(200)
|
.reply(200)
|
||||||
|
|
||||||
@ -29,6 +26,11 @@ describe('# Network Controller', function () {
|
|||||||
|
|
||||||
networkController.initializeProvider(networkControllerProviderInit, provider)
|
networkController.initializeProvider(networkControllerProviderInit, provider)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
afterEach(function () {
|
||||||
|
nock.cleanAll()
|
||||||
|
})
|
||||||
|
|
||||||
describe('network', function () {
|
describe('network', function () {
|
||||||
describe('#provider', function () {
|
describe('#provider', function () {
|
||||||
it('provider should be updatable without reassignment', function () {
|
it('provider should be updatable without reassignment', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user