Skip to content

Commit

Permalink
Fix mascara tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpshr committed Jul 10, 2018
1 parent 612821e commit 43e8583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/controllers/provider-approval.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ProviderApprovalController {
this.openPopup = openPopup
this.platform = platform

platform && platform.addMessageListener(({ action, origin, web3 }) => {
platform && platform.addMessageListener && platform.addMessageListener(({ action, origin, web3 }) => {
action && action === 'init-provider-request' && this.handleProviderRequest(origin, web3)
})
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/metamask.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const assert = require('assert')
const pify = require('pify')
const webdriver = require('selenium-webdriver')
const { By, Key, until } = webdriver
const { waitUntilXWindowHandles, switchToWindowWithTitle } = require('./beta/helpers.js')
const { switchToWindowWithTitle } = require('./beta/helpers.js')
const { delay, buildChromeWebDriver, buildFirefoxWebdriver, installWebExt, getExtensionIdChrome, getExtensionIdFirefox } = require('./func')

describe('Metamask popup page', function () {
Expand Down

0 comments on commit 43e8583

Please sign in to comment.