aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-09-20 01:53:56 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-09-20 02:34:19 +0800
commit4e57cdf8b35c0bde571fb108b76d70ca251644f7 (patch)
tree9e2283a266bbea1f1529853541d039d6d6a350e6
parent90482934f105deeaa32271dac06271f4d6a0bf52 (diff)
downloadtangerine-wallet-browser-4e57cdf8b35c0bde571fb108b76d70ca251644f7.tar
tangerine-wallet-browser-4e57cdf8b35c0bde571fb108b76d70ca251644f7.tar.gz
tangerine-wallet-browser-4e57cdf8b35c0bde571fb108b76d70ca251644f7.tar.bz2
tangerine-wallet-browser-4e57cdf8b35c0bde571fb108b76d70ca251644f7.tar.lz
tangerine-wallet-browser-4e57cdf8b35c0bde571fb108b76d70ca251644f7.tar.xz
tangerine-wallet-browser-4e57cdf8b35c0bde571fb108b76d70ca251644f7.tar.zst
tangerine-wallet-browser-4e57cdf8b35c0bde571fb108b76d70ca251644f7.zip
stub platform
-rw-r--r--mock-dev.js1
-rw-r--r--test/unit/metamask-controller-test.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/mock-dev.js b/mock-dev.js
index a47f1ed4d..0a3eb12ce 100644
--- a/mock-dev.js
+++ b/mock-dev.js
@@ -62,6 +62,7 @@ const controller = new MetamaskController({
showUnconfirmedMessage: noop,
unlockAccountMessage: noop,
showUnapprovedTx: noop,
+ platform: {},
// initial state
initState: firstTimeState,
})
diff --git a/test/unit/metamask-controller-test.js b/test/unit/metamask-controller-test.js
index 5ee0a6c84..ef6cae758 100644
--- a/test/unit/metamask-controller-test.js
+++ b/test/unit/metamask-controller-test.js
@@ -10,6 +10,7 @@ describe('MetaMaskController', function () {
showUnconfirmedMessage: noop,
unlockAccountMessage: noop,
showUnapprovedTx: noop,
+ platform: {},
// initial state
initState: clone(firstTimeState),
})