Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
remove async from new test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 14, 2018
1 parent b4fb1c3 commit 7c0f326
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/common/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
});

Expand Down

0 comments on commit 7c0f326

Please sign in to comment.