From fbbb9f1c36db526edc136fa2ecc4e6aba022099b Mon Sep 17 00:00:00 2001 From: Martin Suchanek Date: Mon, 25 May 2020 06:12:45 -0700 Subject: [PATCH] Add missing async delay import to code sample (#5837) --- docs/testing.md | 2 ++ 1 file changed, 2 insertions(+) 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;