remove async from new test

This commit is contained in:
Rich Harris
2018-01-14 00:10:20 -05:00
parent b4fb1c3268
commit 7c0f32662d

View File

@@ -311,17 +311,16 @@ function run(env) {
});
});
it('calls a delete handler', async () => {
await nightmare
it('calls a delete handler', () => {
return nightmare
.goto(`${base}/delete-test`)
.wait(() => window.READY)
.click('.del')
.wait(() => window.deleted);
assert.equal(
await nightmare.evaluate(() => window.deleted.id),
42
);
.wait(() => window.deleted)
.evaluate(() => window.deleted.id)
.then(id => {
assert.equal(id, 42);
});
});
});