summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorMartin Suchanek <mrtn@nrd.io>2020-05-25 06:12:45 -0700
committerGitHub <noreply@github.com>2020-05-25 09:12:45 -0400
commitfbbb9f1c36db526edc136fa2ecc4e6aba022099b (patch)
tree04f7c07eb4d07330fc5292155117f8ff591cf849 /docs/testing.md
parent20bf04dc7e046e8191443e75be451ec81523a86a (diff)
Add missing async delay import to code sample (#5837)
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 5448f6d58..ba484c972 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;