mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 21:24:59 +00:00
quick attempt at fixing test for travis
This commit is contained in:
@@ -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`);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -322,4 +323,4 @@ function exec(cmd) {
|
|||||||
fulfil();
|
fulfil();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user