diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-15 15:12:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 10:12:42 -0400 |
commit | 926db017d99d076110aeb70fe4fc6df56f58d09c (patch) | |
tree | 076c71ec9b923632a4f7f5db60de1bfe070989f0 /std/testing/asserts_test.ts | |
parent | cb64cf3ce2ea46883fa8bc2b4242dfd07e4551e5 (diff) |
Remove std/testing/format.ts (#4749)
Diffstat (limited to 'std/testing/asserts_test.ts')
-rw-r--r-- | std/testing/asserts_test.ts | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts index ac0676ed5..443b4cd27 100644 --- a/std/testing/asserts_test.ts +++ b/std/testing/asserts_test.ts @@ -14,7 +14,7 @@ import { unimplemented, unreachable, } from "./asserts.ts"; -import { red, green, white, gray, bold } from "../fmt/colors.ts"; +import { red, green, gray, bold } from "../fmt/colors.ts"; const { test } = Deno; test(function testingEqual(): void { @@ -302,12 +302,8 @@ test({ AssertionError, [ ...createHeader(), - white(" Array ["), - removed(`- 1,`), - added(`+ "1",`), - white(' "2",'), - white(" 3,"), - white(" ]"), + removed(`- [ 1, "2", 3 ]`), + added(`+ [ "1", "2", 3 ]`), "", ].join("\n") ); @@ -322,15 +318,8 @@ test({ AssertionError, [ ...createHeader(), - white(" Object {"), - white(` "a": 1,`), - added(`+ "b": 2,`), - added(`+ "c": Array [`), - added(`+ 3,`), - added(`+ ],`), - removed(`- "b": "2",`), - removed(`- "c": 3,`), - white(" }"), + removed(`- { a: 1, b: "2", c: 3 }`), + added(`+ { a: 1, b: 2, c: [ 3 ] }`), "", ].join("\n") ); |