Skip to content

Commit e874f40

Browse files
committed
tests: fix lint errors
1 parent 37dc794 commit e874f40

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/extend.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
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 '.'
33

4+
// tslint:disable-next-line
45
let Page, ElementHandle
56

67
try {
@@ -10,6 +11,7 @@ try {
1011
Page.prototype.getDocument = getDocument
1112
getQueriesForElement(ElementHandle.prototype)
1213
} catch (err) {
14+
// tslint:disable-next-line
1315
console.error('Could not augment puppeteer functions, do you have a conflicting version?')
1416
throw err
1517
}

lib/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ export async function getDocument(_page?: Page): Promise<ElementHandle> {
109109
return document
110110
}
111111

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<{}> {
113116
return waitForExpect(callback, timeout, interval)
114117
}
115118

0 commit comments

Comments
 (0)