Skip to content

Commit c844a1a

Browse files
committed
chore: lint
1 parent d185cba commit c844a1a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/browsers/puppeteer/webpage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export default class PuppeteerWebpage extends Webpage {
1313
let waitFn = 'waitForSelector'
1414
if (typeof readyCondition === 'number') {
1515
waitFn = 'waitForTimeout'
16-
} else if (typeof readyCondition === 'function') {
16+
} else if (typeof readyCondition === 'function') {
1717
waitFn = 'waitForFunction'
1818
}
19-
19+
2020
await this.page[waitFn](readyCondition)
2121
}
2222

test/unit/utils.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'path'
12
import * as utils from '../../src/utils'
23
import Browser from '../../src/browsers/browser'
34

@@ -166,11 +167,11 @@ describe('utils', () => {
166167

167168
test('fs: exists', async () => {
168169
expect(await utils.exists(__dirname)).toBe(true)
169-
expect(await utils.exists(`${__dirname}/doesnt-exists`)).toBe(false)
170+
expect(await utils.exists(path.join(__dirname, '/doesnt-exists'))).toBe(false)
170171
})
171172

172173
test('fs: stats', async () => {
173174
expect(await utils.stats(__dirname)).toBeTruthy()
174-
expect(await utils.stats(`${__dirname}/doesnt-exists`)).toBe(false)
175+
expect(await utils.stats(path.join(__dirname, '/doesnt-exists'))).toBe(false)
175176
})
176177
})

0 commit comments

Comments
 (0)