From be7c53beccf9963e837a4b5f5902cfa9de8de80b Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Sat, 6 Jan 2018 14:53:14 -0800 Subject: [PATCH] quick attempt at fixing test for travis --- test/common/test.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/common/test.js b/test/common/test.js index 56e28f6..eccf2f7 100644 --- a/test/common/test.js +++ b/test/common/test.js @@ -283,11 +283,12 @@ function run(env) { }); it('passes entire request object to preload', async () => { - const html = await nightmare + await nightmare .goto(`${base}/show-url`) - .evaluate(() => document.querySelector('p').innerHTML); - - assert.equal(html, `URL is /show-url`); + .evaluate(() => document.querySelector('p').innerHTML) + .end().then(html => { + assert.equal(html, `URL is /show-url`); + }); }); }); @@ -322,4 +323,4 @@ function exec(cmd) { fulfil(); }); }); -} \ No newline at end of file +}