mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 05:45:27 +00:00
use built-in for document.title
This commit is contained in:
@@ -178,7 +178,7 @@ function run(env) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await nightmare.evaluate(() => document.title),
|
await nightmare.title(),
|
||||||
'About'
|
'About'
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ function run(env) {
|
|||||||
.wait(100);
|
.wait(100);
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await nightmare.evaluate(() => document.title),
|
await nightmare.title(),
|
||||||
'What is Sapper?'
|
'What is Sapper?'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user