Skip to content

Commit 0110f43

Browse files
committed
chore: lint
1 parent be2f34c commit 0110f43

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

src/browsers/puppeteer/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default class PuppeteerCoreBrowser extends Browser {
6363
}
6464

6565
if (!executablePath) {
66-
throw new BrowserError(this, `Could not find a Chrome executable`)
66+
throw new BrowserError(this, 'Could not find a Chrome executable')
6767
}
6868

6969
launchOptions.executablePath = executablePath

src/browsers/saucelabs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class SauceLabsBrowser extends SeleniumLogging(SeleniumBrowser) {
1515
builder.usingServer(`http://${user}:${key}@ondemand.saucelabs.com:80/wd/hub`)
1616
})
1717

18-
throw new BrowserError(this, `SauceLabs not yet implemented`)
18+
throw new BrowserError(this, 'SauceLabs not yet implemented')
1919
}
2020

2121
/* istanbul ignore next */

src/commands/browserstack-local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class BrowserStackLocal {
4545
pid = pid || (BrowserStackLocal.driver && BrowserStackLocal.driver.pid) || PID
4646

4747
if (!BrowserStackLocal.driver || !pid) {
48-
consola.warn(`Stop called but browserstack-local was not started`)
48+
consola.warn('Stop called but browserstack-local was not started')
4949
return
5050
}
5151

src/commands/xvfb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class Xvfb {
8686
Xvfb.closed = true
8787

8888
if (err && err.code === 'ENOENT') {
89-
throw new BrowserError(`Xvfb not found, please make sure Xvfb is installed`)
89+
throw new BrowserError('Xvfb not found, please make sure Xvfb is installed')
9090
}
9191
})
9292

@@ -122,7 +122,7 @@ export default class Xvfb {
122122
let closeTimeout
123123
const waitTimeout = new Promise((resolve) => {
124124
closeTimeout = setTimeout(() => {
125-
consola.warn(`Timeout: Xvfb did not exit after 3s`)
125+
consola.warn('Timeout: Xvfb did not exit after 3s')
126126
resolve()
127127
}, 3000)
128128
closeTimeout.unref()

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function createBrowser(str, conf, autoStart = true) {
1313

1414
export function browser(...args) {
1515
/* istanbul ignore next */
16-
console.warn(`DeprecationWarning: 'browser' has been renamed to 'createBrowser'`) // eslint-disable-line no-console
16+
console.warn('DeprecationWarning: \'browser\' has been renamed to \'createBrowser\'') // eslint-disable-line no-console
1717
/* istanbul ignore next */
1818
return createBrowser(...args)
1919
}

test/unit/command.static-server.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ describe('StaticServer', () => {
5555
folder: 'test',
5656
staticServer: true
5757
},
58-
hook })
58+
hook
59+
})
5960

6061
expect(hook).toHaveBeenCalled()
6162
})

test/unit/page-functions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('page functions', () => {
4343
expect(transpiledFunctions).toMatchObject({
4444
pageFunction: expect.any(Function)
4545
})
46-
expect(spy).toHaveBeenCalledWith(`A page function with name 'pageFunction' already exists, the previous one will be overwritten`)
46+
expect(spy).toHaveBeenCalledWith('A page function with name \'pageFunction\' already exists, the previous one will be overwritten')
4747
})
4848

4949
test('create page functions for ie 9', async () => {

test/unit/utils.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('utils', () => {
3636
})
3737

3838
test('loadDependency: throws error on non-existing dependency', async () => {
39-
await expect(utils.loadDependency('does-not-exists')).rejects.toThrow(`BrowserError: Could not import the required dependency 'does-not-exists'`)
39+
await expect(utils.loadDependency('does-not-exists')).rejects.toThrow('BrowserError: Could not import the required dependency \'does-not-exists\'')
4040
})
4141

4242
test('enableTimers: reinstates timers in Jest environment', () => {
@@ -120,7 +120,7 @@ describe('utils', () => {
120120

121121
const parsedFn = utils.parseFunction(fn, { targets: { chrome: 71 } })
122122
expect(parsedFn.args).toEqual(['arg'])
123-
expect(parsedFn.body.trim()).toEqual(`return () => !!arg;`)
123+
expect(parsedFn.body.trim()).toEqual('return () => !!arg;')
124124
})
125125

126126
test('default html compiler should work', () => {

0 commit comments

Comments
 (0)