diff options
author | tokiedokie <thetokiedokie@gmail.com> | 2020-10-04 21:18:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 14:18:36 +0200 |
commit | 3d65177dbcaf6d08c7e4a412beece8ee6939d466 (patch) | |
tree | 53b5954f612daa559f8e893471083f854ea63464 /std/testing | |
parent | ec963238230c7f92a29da27ced0a2ec706af92d0 (diff) |
docs(std): version all imports in README (#7442)
Use $STD_VERSION in std/ README files to automatically
display proper version.
Diffstat (limited to 'std/testing')
-rw-r--r-- | std/testing/README.md | 7 |
1 files changed, 5 insertions, 2 deletions
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(); |