quick attempt at fixing test for travis

This commit is contained in:
Luke Edwards
2018-01-06 14:53:14 -08:00
parent ee94f355d5
commit be7c53becc

View File

@@ -283,11 +283,12 @@ function run(env) {
}); });
it('passes entire request object to preload', async () => { it('passes entire request object to preload', async () => {
const html = await nightmare await nightmare
.goto(`${base}/show-url`) .goto(`${base}/show-url`)
.evaluate(() => document.querySelector('p').innerHTML); .evaluate(() => document.querySelector('p').innerHTML)
.end().then(html => {
assert.equal(html, `URL is /show-url`); assert.equal(html, `URL is /show-url`);
});
}); });
}); });