Skip to content

Commit 7855519

Browse files
jackfranklinmathiasbynens
authored andcommittedJun 25, 2020
chore: tidy up TODO from TS tests migration (#6090)
Deleting `Node` errors in strict mode; we don't need to have this test any more.
1 parent f481922 commit 7855519

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed
 

Diff for: ‎test/jshandle.spec.ts

-12
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,6 @@ describe('JSHandle', function () {
195195
await page.evaluate((e) => e.nodeType === Node.TEXT_NODE, element)
196196
);
197197
});
198-
it('should work with nullified Node', async () => {
199-
const { page } = getTestState();
200-
201-
await page.setContent('<section>test</section>');
202-
// TODO (@jackfranklin): this line doesn't do anything. What was intended here?
203-
// await page.evaluate(() => delete Node);
204-
const handle = await page.evaluateHandle(() =>
205-
document.querySelector('section')
206-
);
207-
const element = handle.asElement();
208-
expect(element).not.toBe(null);
209-
});
210198
});
211199

212200
describe('JSHandle.toString', function () {

0 commit comments

Comments
 (0)
Please sign in to comment.