diff options
Diffstat (limited to 'std/testing')
-rw-r--r-- | std/testing/README.md | 2 | ||||
-rw-r--r-- | std/testing/asserts.ts | 4 | ||||
-rw-r--r-- | std/testing/asserts_test.ts | 12 | ||||
-rw-r--r-- | std/testing/bench_example.ts | 2 | ||||
-rw-r--r-- | std/testing/bench_test.ts | 6 |
5 files changed, 13 insertions, 13 deletions
diff --git a/std/testing/README.md b/std/testing/README.md index 00169384c..82351d94a 100644 --- a/std/testing/README.md +++ b/std/testing/README.md @@ -156,7 +156,7 @@ After that simply calling `runBenchmarks()` will benchmark all registered benchmarks and log the results in the commandline. ```ts -import { runBenchmarks, bench } from "https://deno.land/std/testing/bench.ts"; +import { bench, runBenchmarks } from "https://deno.land/std/testing/bench.ts"; bench(function forIncrementX1e9(b): void { b.start(); diff --git a/std/testing/asserts.ts b/std/testing/asserts.ts index 9796c9d31..05bb995ab 100644 --- a/std/testing/asserts.ts +++ b/std/testing/asserts.ts @@ -2,8 +2,8 @@ /** This module is browser compatible. Do not rely on good formatting of values * for AssertionError messages in browsers. */ -import { red, green, white, gray, bold, stripColor } from "../fmt/colors.ts"; -import diff, { DiffType, DiffResult } from "./diff.ts"; +import { bold, gray, green, red, stripColor, white } from "../fmt/colors.ts"; +import diff, { DiffResult, DiffType } from "./diff.ts"; const CAN_NOT_DISPLAY = "[Cannot display]"; diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts index 4840bcf53..7b57fbfa0 100644 --- a/std/testing/asserts_test.ts +++ b/std/testing/asserts_test.ts @@ -2,23 +2,23 @@ import { _format, assert, - assertNotEquals, - assertStringContains, assertArrayContains, + assertEquals, + AssertionError, assertMatch, + assertNotEquals, assertNotMatch, - assertEquals, - assertStrictEquals, assertNotStrictEquals, + assertStrictEquals, + assertStringContains, assertThrows, assertThrowsAsync, - AssertionError, equal, fail, unimplemented, unreachable, } from "./asserts.ts"; -import { red, green, gray, bold, yellow, stripColor } from "../fmt/colors.ts"; +import { bold, gray, green, red, stripColor, yellow } from "../fmt/colors.ts"; Deno.test("testingEqual", function (): void { assert(equal("world", "world")); diff --git a/std/testing/bench_example.ts b/std/testing/bench_example.ts index 41b1ca65c..496033fff 100644 --- a/std/testing/bench_example.ts +++ b/std/testing/bench_example.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. // https://deno.land/std/testing/bench.ts -import { BenchmarkTimer, bench, runBenchmarks } from "./bench.ts"; +import { bench, BenchmarkTimer, runBenchmarks } from "./bench.ts"; // Basic bench(function forIncrementX1e9(b: BenchmarkTimer): void { diff --git a/std/testing/bench_test.ts b/std/testing/bench_test.ts index 97517358a..18b78c5a2 100644 --- a/std/testing/bench_test.ts +++ b/std/testing/bench_test.ts @@ -1,15 +1,15 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { bench, - runBenchmarks, BenchmarkRunError, - clearBenchmarks, BenchmarkRunProgress, + clearBenchmarks, ProgressState, + runBenchmarks, } from "./bench.ts"; import { - assertEquals, assert, + assertEquals, assertThrows, assertThrowsAsync, } from "./asserts.ts"; |