Remove std/testing/format.ts (#4749)

This commit is contained in:
Nayeem Rahman 2020-04-15 15:12:42 +01:00 committed by GitHub
parent cb64cf3ce2
commit 926db017d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 1386 deletions

View file

@ -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")
);