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 {
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
Original file line number Diff line number Diff line change 1+ import path from 'path'
12import * as utils from '../../src/utils'
23import 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} )
You can’t perform that action at this time.
0 commit comments