From f0bc68be88d0ebef22adab44cb4eb1e18459fdf8 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Sat, 6 Jan 2018 15:07:43 -0800 Subject: [PATCH] use built-in for `document.title` --- test/common/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/test.js b/test/common/test.js index eccf2f7..e8efafc 100644 --- a/test/common/test.js +++ b/test/common/test.js @@ -178,7 +178,7 @@ function run(env) { ); assert.equal( - await nightmare.evaluate(() => document.title), + await nightmare.title(), 'About' ); @@ -194,7 +194,7 @@ function run(env) { .wait(100); assert.equal( - await nightmare.evaluate(() => document.title), + await nightmare.title(), 'What is Sapper?' ); });