From 3d65177dbcaf6d08c7e4a412beece8ee6939d466 Mon Sep 17 00:00:00 2001 From: tokiedokie Date: Sun, 4 Oct 2020 21:18:36 +0900 Subject: docs(std): version all imports in README (#7442) Use $STD_VERSION in std/ README files to automatically display proper version. --- std/testing/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'std/testing') diff --git a/std/testing/README.md b/std/testing/README.md index 0b0e8afe9..e442ea014 100644 --- a/std/testing/README.md +++ b/std/testing/README.md @@ -40,7 +40,7 @@ pretty-printed diff of failing assertion. Basic usage: ```ts -import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts"; Deno.test({ name: "testing example", @@ -156,7 +156,10 @@ After that simply calling `runBenchmarks()` will benchmark all registered benchmarks and log the results in the commandline. ```ts -import { bench, runBenchmarks } from "https://deno.land/std/testing/bench.ts"; +import { + bench, + runBenchmarks, +} from "https://deno.land/std@$STD_VERSION/testing/bench.ts"; bench(function forIncrementX1e9(b): void { b.start(); -- cgit v1.2.3