summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-07-31 11:12:20 +0200
committerGitHub <noreply@github.com>2020-07-31 11:12:20 +0200
commit4afb4b6e46de2ed536a3c9828d70d7799b5b6d03 (patch)
treeaa31f3ea3b5ca01a97e13a777eed51c7dcbd17c4 /docs/testing.md
parent6e7208bec2911ac0d1729f334fc90bc50b8f9203 (diff)
feat: add $STD_VERSION replacement variable in docs (#6922)
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/testing.md b/docs/testing.md
index c71de1113..14c539cea 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -27,14 +27,14 @@ Deno.test({
## Assertions
-There are some useful assertion utilities at https://deno.land/std/testing#usage
-to make testing easier:
+There are some useful assertion utilities at
+https://deno.land/std@$STD_VERSION/testing#usage to make testing easier:
```ts
import {
assertEquals,
assertArrayContains,
-} from "https://deno.land/std/testing/asserts.ts";
+} from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
Deno.test("hello world", () => {
const x = 1 + 2;
@@ -49,7 +49,7 @@ 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";
+import { delay } from "https://deno.land/std@$STD_VERSION/async/delay.ts";
Deno.test("async hello world", async () => {
const x = 1 + 2;