diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-03-29 04:03:49 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 13:03:49 -0400 |
commit | bced52505f32d6cca4f944bb610a8a26767908a8 (patch) | |
tree | da49a5df4b7bd6f8306248069228cd6bd0db1303 /std/testing/asserts_test.ts | |
parent | 1397b8e0e7c85762e19d88fde103342bfa563360 (diff) |
Update to Prettier 2 and use ES Private Fields (#4498)
Diffstat (limited to 'std/testing/asserts_test.ts')
-rw-r--r-- | std/testing/asserts_test.ts | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts index 558ce1578..62e199298 100644 --- a/std/testing/asserts_test.ts +++ b/std/testing/asserts_test.ts @@ -12,7 +12,7 @@ import { equal, fail, unimplemented, - unreachable + unreachable, } from "./asserts.ts"; import { red, green, white, gray, bold } from "../fmt/colors.ts"; const { test } = Deno; @@ -53,11 +53,11 @@ test(function testingEqual(): void { equal( new Map([ ["foo", "bar"], - ["baz", "baz"] + ["baz", "baz"], ]), new Map([ ["foo", "bar"], - ["baz", "baz"] + ["baz", "baz"], ]) ) ); @@ -77,11 +77,11 @@ test(function testingEqual(): void { equal( new Map([ ["foo", "bar"], - ["baz", "qux"] + ["baz", "qux"], ]), new Map([ ["baz", "qux"], - ["foo", "bar"] + ["foo", "bar"], ]) ) ); @@ -92,7 +92,7 @@ test(function testingEqual(): void { new Map([["foo", "bar"]]), new Map([ ["foo", "bar"], - ["bar", "baz"] + ["bar", "baz"], ]) ) ); @@ -253,7 +253,7 @@ const createHeader = (): string[] => [ "", ` ${gray(bold("[Diff]"))} ${red(bold("Left"))} / ${green(bold("Right"))}`, "", - "" + "", ]; const added: (s: string) => string = (s: string): string => green(bold(s)); @@ -267,7 +267,7 @@ test({ assertEquals(10, 10); assertEquals("abc", "abc"); assertEquals({ a: 10, b: { c: "1" } }, { a: 10, b: { c: "1" } }); - } + }, }); test({ @@ -278,7 +278,7 @@ test({ AssertionError, [...createHeader(), removed(`- 1`), added(`+ 2`), ""].join("\n") ); - } + }, }); test({ @@ -289,7 +289,7 @@ test({ AssertionError, [...createHeader(), removed(`- 1`), added(`+ "1"`)].join("\n") ); - } + }, }); test({ @@ -306,10 +306,10 @@ test({ white(' "2",'), white(" 3,"), white(" ]"), - "" + "", ].join("\n") ); - } + }, }); test({ @@ -329,8 +329,8 @@ test({ removed(`- "b": "2",`), removed(`- "c": 3,`), white(" }"), - "" + "", ].join("\n") ); - } + }, }); |