File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Matcher , MatcherOptions , SelectorMatcherOptions } from 'dom-testing-library/typings' // tslint:disable-line no-submodule-imports
2
- import { getQueriesForElement , getDocument } from '.'
2
+ import { getDocument , getQueriesForElement } from '.'
3
3
4
+ // tslint:disable-next-line
4
5
let Page , ElementHandle
5
6
6
7
try {
10
11
Page . prototype . getDocument = getDocument
11
12
getQueriesForElement ( ElementHandle . prototype )
12
13
} catch ( err ) {
14
+ // tslint:disable-next-line
13
15
console . error ( 'Could not augment puppeteer functions, do you have a conflicting version?' )
14
16
throw err
15
17
}
Original file line number Diff line number Diff line change @@ -109,7 +109,10 @@ export async function getDocument(_page?: Page): Promise<ElementHandle> {
109
109
return document
110
110
}
111
111
112
- export function wait ( callback = ( ) => { } , { timeout = 4500 , interval = 50 } = { } ) : Promise < { } > {
112
+ export function wait (
113
+ callback : ( ) => any = ( ) => undefined ,
114
+ { timeout = 4500 , interval = 50 } = { } , // tslint:disable-line
115
+ ) : Promise < { } > {
113
116
return waitForExpect ( callback , timeout , interval )
114
117
}
115
118
You can’t perform that action at this time.
0 commit comments