aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-02-28 07:50:49 +0800
committerThomas <tmashuang@gmail.com>2018-02-28 07:50:49 +0800
commitb2f53fa35481006cba37d89ebf4c7a866be4f125 (patch)
treeb14a7a5ec332440cf56901197f649902a6f5eab7 /test
parent8f7094a73d4ca5879e8290e3b1aefdc42397767d (diff)
downloadtangerine-wallet-browser-b2f53fa35481006cba37d89ebf4c7a866be4f125.tar.gz
tangerine-wallet-browser-b2f53fa35481006cba37d89ebf4c7a866be4f125.tar.zst
tangerine-wallet-browser-b2f53fa35481006cba37d89ebf4c7a866be4f125.zip
Revert initializing first-time-state
Diffstat (limited to 'test')
-rw-r--r--test/stub/first-time-state.js14
-rw-r--r--test/unit/metamask-controller-test.js6
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({