mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Revert initializing first-time-state
This commit is contained in:
parent
8f7094a73d
commit
b2f53fa354
@ -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,
|
||||
},
|
||||
}
|
@ -4,7 +4,7 @@ const clone = require('clone')
|
||||
const nock = require('nock')
|
||||
const MetaMaskController = require('../../app/scripts/metamask-controller')
|
||||
const blacklistJSON = require('../stub/blacklist')
|
||||
const firstTimeState = require('../stub/first-time-state')
|
||||
const firstTimeState = require('../../app/scripts/first-time-state')
|
||||
|
||||
describe('MetaMaskController', function () {
|
||||
let metamaskController
|
||||
@ -18,9 +18,9 @@ describe('MetaMaskController', function () {
|
||||
.get('/v2/blacklist')
|
||||
.reply(200, blacklistJSON)
|
||||
|
||||
nock('https://rinkeby.infura.io')
|
||||
nock('https://api.infura.io')
|
||||
.persist()
|
||||
.post('/metamask')
|
||||
.get(/.*/)
|
||||
.reply(200)
|
||||
|
||||
metamaskController = new MetaMaskController({
|
||||
|
Loading…
Reference in New Issue
Block a user