stub platform

feature/default_network_editable
frankiebee 7 years ago
parent 90482934f1
commit 4e57cdf8b3
  1. 1
      mock-dev.js
  2. 1
      test/unit/metamask-controller-test.js

@ -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,
}) })

@ -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),
}) })

Loading…
Cancel
Save