Skip to content

Commit cace45b

Browse files
authored
chore: fix compatible with default TypeScript config (#16)
1 parent e7090e2 commit cace45b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/example.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ async function checkNumberOfTodosInLocalStorage(page: Page, expected: number) {
387387

388388
async function checkNumberOfCompletedTodosInLocalStorage(page: Page, expected: number) {
389389
return await page.waitForFunction(e => {
390-
return JSON.parse(localStorage['react-todos']).filter(i => i.completed).length === e;
390+
return JSON.parse(localStorage['react-todos']).filter((todo: any) => todo.completed).length === e;
391391
}, expected);
392392
}
393393

394394
async function checkTodosInLocalStorage(page: Page, title: string) {
395395
return await page.waitForFunction(t => {
396-
return JSON.parse(localStorage['react-todos']).map(i => i.title).includes(t);
396+
return JSON.parse(localStorage['react-todos']).map((todo: any) => todo.title).includes(t);
397397
}, title);
398398
}

0 commit comments

Comments
 (0)