From 926db017d99d076110aeb70fe4fc6df56f58d09c Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 15 Apr 2020 15:12:42 +0100 Subject: Remove std/testing/format.ts (#4749) --- std/testing/asserts_test.ts | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'std/testing/asserts_test.ts') 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") ); -- cgit v1.2.3