From 5fee93ae969f109a85b0a6331d5af6bbfba56933 Mon Sep 17 00:00:00 2001 From: Meir Blachman Date: Tue, 11 Feb 2020 19:26:23 +0200 Subject: [PATCH] test: fix expect in jshandle spec (#927) --- test/jshandle.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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
');