0
0
Fork 0
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:
Maxim Zhukov 2020-12-29 12:11:03 -06:00 committed by GitHub
parent 0e0ffa417b
commit 090ca4d3a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;