1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Revert initializing first-time-state

This commit is contained in:
Thomas 2018-02-27 15:50:49 -08:00
parent 8f7094a73d
commit b2f53fa354
2 changed files with 3 additions and 17 deletions

View File

@ -1,14 +0,0 @@
// test and development environment variables
const { createTestProviderTools } = require('../stub/provider')
const providerResultStub = {}
const provider = createTestProviderTools({ scaffold: providerResultStub }).provider
//
// The default state of MetaMask
//
module.exports = {
config: {},
NetworkController: {
provider,
},
}

View File

@ -4,7 +4,7 @@ const clone = require('clone')
const nock = require('nock') const nock = require('nock')
const MetaMaskController = require('../../app/scripts/metamask-controller') const MetaMaskController = require('../../app/scripts/metamask-controller')
const blacklistJSON = require('../stub/blacklist') const blacklistJSON = require('../stub/blacklist')
const firstTimeState = require('../stub/first-time-state') const firstTimeState = require('../../app/scripts/first-time-state')
describe('MetaMaskController', function () { describe('MetaMaskController', function () {
let metamaskController let metamaskController
@ -18,9 +18,9 @@ describe('MetaMaskController', function () {
.get('/v2/blacklist') .get('/v2/blacklist')
.reply(200, blacklistJSON) .reply(200, blacklistJSON)
nock('https://rinkeby.infura.io') nock('https://api.infura.io')
.persist() .persist()
.post('/metamask') .get(/.*/)
.reply(200) .reply(200)
metamaskController = new MetaMaskController({ metamaskController = new MetaMaskController({