diff options
Revert initializing first-time-state
Diffstat (limited to 'test')
-rw-r--r-- | test/stub/first-time-state.js | 14 | ||||
-rw-r--r-- | test/unit/metamask-controller-test.js | 6 |
2 files changed, 3 insertions, 17 deletions
diff --git a/test/stub/first-time-state.js b/test/stub/first-time-state.js deleted file mode 100644 index c9d5a4fe9..000000000 --- a/test/stub/first-time-state.js +++ /dev/null @@ -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, - }, -} diff --git a/test/unit/metamask-controller-test.js b/test/unit/metamask-controller-test.js index ac984faf5..adeca9b5f 100644 --- a/test/unit/metamask-controller-test.js +++ b/test/unit/metamask-controller-test.js @@ -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({ |