mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
Add missing async delay import to code sample (#5837)
This commit is contained in:
parent
20bf04dc7e
commit
fbbb9f1c36
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue