Skip to content

Commit

Permalink
Docs: Fix bad call in timeout example
Browse files Browse the repository at this point in the history
No 'done' method on assert, should be 'async'.

Closes qunitjs#1605.
  • Loading branch information
cnxzq authored Apr 28, 2021
1 parent b936617 commit bb95acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/assert/timeout.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ If `0` is passed, then the test will be assumed to be completely synchronous. If
```js
QUnit.test( "wait for an event", assert => {
assert.timeout( 1000 ); // Timeout after 1 second
const done = assert.done();
const done = assert.async();

const adder = new NumberAdder();
adder.on( "ready", res => {
Expand Down

0 comments on commit bb95acf

Please sign in to comment.