File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ export default class PuppeteerWebpage extends Webpage {
13
13
let waitFn = 'waitForSelector'
14
14
if ( typeof readyCondition === 'number' ) {
15
15
waitFn = 'waitForTimeout'
16
- } else if ( typeof readyCondition === 'function' ) {
16
+ } else if ( typeof readyCondition === 'function' ) {
17
17
waitFn = 'waitForFunction'
18
18
}
19
-
19
+
20
20
await this . page [ waitFn ] ( readyCondition )
21
21
}
22
22
Original file line number Diff line number Diff line change
1
+ import path from 'path'
1
2
import * as utils from '../../src/utils'
2
3
import Browser from '../../src/browsers/browser'
3
4
@@ -166,11 +167,11 @@ describe('utils', () => {
166
167
167
168
test ( 'fs: exists' , async ( ) => {
168
169
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 )
170
171
} )
171
172
172
173
test ( 'fs: stats' , async ( ) => {
173
174
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 )
175
176
} )
176
177
} )
You can’t perform that action at this time.
0 commit comments