mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
lint fix
This commit is contained in:
parent
b2e1f14039
commit
8eb3e4705a
@ -1,18 +1,11 @@
|
|||||||
const path = require('path')
|
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const webdriver = require('selenium-webdriver')
|
const webdriver = require('selenium-webdriver')
|
||||||
const { By, until } = webdriver
|
const { By, until } = webdriver
|
||||||
const {
|
const {
|
||||||
delay,
|
delay,
|
||||||
buildChromeWebDriver,
|
|
||||||
buildFirefoxWebdriver,
|
|
||||||
installWebExt,
|
|
||||||
getExtensionIdChrome,
|
|
||||||
getExtensionIdFirefox,
|
|
||||||
} = require('./func')
|
} = require('./func')
|
||||||
const {
|
const {
|
||||||
checkBrowserForConsoleErrors,
|
checkBrowserForConsoleErrors,
|
||||||
closeAllWindowHandlesExcept,
|
|
||||||
findElement,
|
findElement,
|
||||||
findElements,
|
findElements,
|
||||||
openNewPage,
|
openNewPage,
|
||||||
@ -24,7 +17,6 @@ const {
|
|||||||
} = require('./helpers')
|
} = require('./helpers')
|
||||||
|
|
||||||
describe('MetaMask', function () {
|
describe('MetaMask', function () {
|
||||||
let extensionId
|
|
||||||
let driver
|
let driver
|
||||||
let publicAddress
|
let publicAddress
|
||||||
|
|
||||||
@ -38,7 +30,6 @@ describe('MetaMask', function () {
|
|||||||
before(async function () {
|
before(async function () {
|
||||||
const result = await prepareExtensionForTesting()
|
const result = await prepareExtensionForTesting()
|
||||||
driver = result.driver
|
driver = result.driver
|
||||||
extensionId = result.extensionId
|
|
||||||
await setupFetchMocking(driver)
|
await setupFetchMocking(driver)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async function prepareExtensionForTesting ({ responsive }={}) {
|
async function prepareExtensionForTesting ({ responsive } = {}) {
|
||||||
let driver, extensionId, extensionUrl
|
let driver, extensionId, extensionUrl
|
||||||
const targetBrowser = process.env.SELENIUM_BROWSER
|
const targetBrowser = process.env.SELENIUM_BROWSER
|
||||||
switch (targetBrowser) {
|
switch (targetBrowser) {
|
||||||
|
Loading…
Reference in New Issue
Block a user