use built-in for document.title

This commit is contained in:
Luke Edwards
2018-01-06 15:07:43 -08:00
parent be7c53becc
commit f0bc68be88

View File

@@ -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?'
);
});