Skip to content

Commit

Permalink
If using await in test make test callback async (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoldderoij committed Nov 13, 2023
1 parent 5fad4f5 commit c17b57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/manual/basics/testing/assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Promises. You can also optionally check for the error type and error message.
This can be used similar to `assertThrows()` but with async functions.

```js
Deno.test("Test Assert Throws Async", () => {
Deno.test("Test Assert Throws Async", async () => {
await assertRejects(
() => {
return new Promise(() => {
Expand Down

0 comments on commit c17b57d

Please sign in to comment.