Skip to content

Commit

Permalink
fix: non-string keys into strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sand4rt committed Aug 28, 2023
1 parent 9c9b5e0 commit 4478abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/page/page-evaluate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ it('should transfer bigint', async ({ page }) => {
});

it('should transfer maps', async ({ page }) => {
expect(await page.evaluate(() => new Map([['key', { test: 42n }]]))).toEqual(new Map([['key', { test: 42n }]]));
expect(await page.evaluate(a => a, new Map([['key', { test: 17n }]]))).toEqual(new Map([['key', { test: 17n }]]));
expect(await page.evaluate(() => new Map([[1, { test: 42n }]]))).toEqual(new Map([[1, { test: 42n }]]));
expect(await page.evaluate(a => a, new Map([[1, { test: 17n }]]))).toEqual(new Map([[1, { test: 17n }]]));
});

it('should transfer sets', async ({ page }) => {
Expand Down

0 comments on commit 4478abc

Please sign in to comment.