diff --git a/docs/testing.md b/docs/testing.md index 5448f6d582..ba484c9720 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -35,6 +35,8 @@ You can also test asynchronous code by passing a test function that returns a promise. For this you can use the `async` keyword when defining a function: ```ts +import { delay } from "https://deno.land/std/async/delay.ts"; + Deno.test("async hello world", async () => { const x = 1 + 2;