diff --git a/test/jshandle.spec.js b/test/jshandle.spec.js index 69b72e442d..4506eadd2f 100644 --- a/test/jshandle.spec.js +++ b/test/jshandle.spec.js @@ -160,7 +160,7 @@ module.exports.describe = function({testRunner, expect, CHROMIUM, FFOX, WEBKIT}) const aHandle = await page.evaluateHandle(() => document.querySelector('div').firstChild); const element = aHandle.asElement(); expect(element).toBeTruthy(); - expect(await page.evaluate(e => e.nodeType === HTMLElement.TEXT_NODE, element)); + expect(await page.evaluate(e => e.nodeType === HTMLElement.TEXT_NODE, element)).toBeTruthy(); }); it('should work with nullified Node', async({page, server}) => { await page.setContent('
test
');