Skip to content

Commit

Permalink
chore: fix ajs-tester lint
Browse files Browse the repository at this point in the history
  • Loading branch information
oscb committed Aug 23, 2023
1 parent 55f4382 commit b48c83a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/browser/src/tester/ajs-tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ function makeStub(page: playwright.Page) {
...args: Parameters<Analytics['register']>
): Promise<SerializedContext> {
return await page.evaluate((innerArgs) => {
// @ts-ignore
return window.analytics
.register(...innerArgs)
.then((ctx) => ctx.toJSON())
// @ts-ignore
return (
// @ts-ignore
window.analytics
.register(...innerArgs)
// @ts-ignore
.then((ctx) => ctx.toJSON())
)
}, args)
},
async track(
Expand Down

0 comments on commit b48c83a

Please sign in to comment.