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:
Darío Kondratiuk 2021-09-28 06:26:42 -03:00 committed by GitHub
parent 113489d3b5
commit 7069cfedda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,17 +74,6 @@ describe('JSHandle', function () {
it('should use the same JS wrappers', async () => {
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(() => {
globalThis.FOO = 123;
return window;