mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Add ExtensionPlatform = 'development' to mockUi
This commit is contained in:
parent
338ebe5f40
commit
d59136eb49
@ -37,3 +37,8 @@ apis.forEach(function (api) {
|
||||
|
||||
extension.runtime.reload = noop
|
||||
extension.tabs.create = noop
|
||||
extension.runtime.getManifest = function () {
|
||||
return {
|
||||
version: 'development'
|
||||
}
|
||||
}
|
@ -23,6 +23,7 @@ const states = require('./development/states')
|
||||
const Selector = require('./development/selector')
|
||||
const MetamaskController = require('./app/scripts/metamask-controller')
|
||||
const firstTimeState = require('./app/scripts/first-time-state')
|
||||
const ExtensionPlatform = require('./app/scripts/platforms/extension')
|
||||
const extension = require('./development/mockExtension')
|
||||
const noop = function () {}
|
||||
|
||||
@ -67,6 +68,7 @@ const controller = new MetamaskController({
|
||||
initState: firstTimeState,
|
||||
})
|
||||
global.metamaskController = controller
|
||||
global.platform = new ExtensionPlatform
|
||||
|
||||
//
|
||||
// User Interface
|
||||
|
Loading…
Reference in New Issue
Block a user