mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
docs(testing): Add import line to test example (#8909)
This commit is contained in:
parent
0e0ffa417b
commit
090ca4d3a7
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ To define a test you need to call `Deno.test` with a name and function to be
|
|||
tested. There are two styles you can use.
|
||||
|
||||
```ts
|
||||
import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
|
||||
|
||||
// Simple name and function, compact form, but not configurable
|
||||
Deno.test("hello world #1", () => {
|
||||
const x = 1 + 2;
|
||||
|
|
Loading…
Reference in a new issue