Skip to content

Commit

Permalink
chore: tidy up TODO from TS tests migration (#6090)
Browse files Browse the repository at this point in the history
Deleting `Node` errors in strict mode; we don't need to have this test
any more.
  • Loading branch information
jackfranklin authored and mathiasbynens committed Jun 25, 2020
1 parent f481922 commit 7855519
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/jshandle.spec.ts
Expand Up @@ -195,18 +195,6 @@ describe('JSHandle', function () {
await page.evaluate((e) => e.nodeType === Node.TEXT_NODE, element)
);
});
it('should work with nullified Node', async () => {
const { page } = getTestState();

await page.setContent('<section>test</section>');
// TODO (@jackfranklin): this line doesn't do anything. What was intended here?
// await page.evaluate(() => delete Node);
const handle = await page.evaluateHandle(() =>
document.querySelector('section')
);
const element = handle.asElement();
expect(element).not.toBe(null);
});
});

describe('JSHandle.toString', function () {
Expand Down

0 comments on commit 7855519

Please sign in to comment.