1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

stub platform

This commit is contained in:
frankiebee 2017-09-19 10:53:56 -07:00
parent 90482934f1
commit 4e57cdf8b3
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ const controller = new MetamaskController({
showUnconfirmedMessage: noop, showUnconfirmedMessage: noop,
unlockAccountMessage: noop, unlockAccountMessage: noop,
showUnapprovedTx: noop, showUnapprovedTx: noop,
platform: {},
// initial state // initial state
initState: firstTimeState, initState: firstTimeState,
}) })

View File

@ -10,6 +10,7 @@ describe('MetaMaskController', function () {
showUnconfirmedMessage: noop, showUnconfirmedMessage: noop,
unlockAccountMessage: noop, unlockAccountMessage: noop,
showUnapprovedTx: noop, showUnapprovedTx: noop,
platform: {},
// initial state // initial state
initState: clone(firstTimeState), initState: clone(firstTimeState),
}) })