test: remove duplicated test on jshandle.spec.ts (#7606)
`should work with primitives` is a duple of `should use the same JS wrappers`
This commit is contained in:
parent
113489d3b5
commit
7069cfedda
@ -74,17 +74,6 @@ describe('JSHandle', function () {
|
|||||||
it('should use the same JS wrappers', async () => {
|
it('should use the same JS wrappers', async () => {
|
||||||
const { page } = getTestState();
|
const { page } = getTestState();
|
||||||
|
|
||||||
const aHandle = await page.evaluateHandle(() => {
|
|
||||||
globalThis.FOO = 123;
|
|
||||||
return window;
|
|
||||||
});
|
|
||||||
expect(await page.evaluate((e: { FOO: number }) => e.FOO, aHandle)).toBe(
|
|
||||||
123
|
|
||||||
);
|
|
||||||
});
|
|
||||||
it('should work with primitives', async () => {
|
|
||||||
const { page } = getTestState();
|
|
||||||
|
|
||||||
const aHandle = await page.evaluateHandle(() => {
|
const aHandle = await page.evaluateHandle(() => {
|
||||||
globalThis.FOO = 123;
|
globalThis.FOO = 123;
|
||||||
return window;
|
return window;
|
||||||
|
Loading…
Reference in New Issue
Block a user