diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /testing/pretty_test.ts | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'testing/pretty_test.ts')
| -rw-r--r-- | testing/pretty_test.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/testing/pretty_test.ts b/testing/pretty_test.ts index d0e90f656..07ab83d5e 100644 --- a/testing/pretty_test.ts +++ b/testing/pretty_test.ts @@ -18,7 +18,7 @@ const removed: (s: string) => string = (s: string): string => red(bold(s)); test({ name: "pass case", - fn() { + fn(): void { assertEquals({ a: 10 }, { a: 10 }); assertEquals(true, true); assertEquals(10, 10); @@ -29,9 +29,9 @@ test({ test({ name: "failed with number", - fn() { + fn(): void { assertThrows( - () => assertEquals(1, 2), + (): void => assertEquals(1, 2), Error, [...createHeader(), removed(`- 1`), added(`+ 2`), ""].join("\n") ); @@ -40,9 +40,9 @@ test({ test({ name: "failed with number vs string", - fn() { + fn(): void { assertThrows( - () => assertEquals(1, "1"), + (): void => assertEquals(1, "1"), Error, [...createHeader(), removed(`- 1`), added(`+ "1"`)].join("\n") ); @@ -51,9 +51,9 @@ test({ test({ name: "failed with array", - fn() { + fn(): void { assertThrows( - () => assertEquals([1, "2", 3], ["1", "2", 3]), + (): void => assertEquals([1, "2", 3], ["1", "2", 3]), Error, [ ...createHeader(), @@ -71,9 +71,9 @@ test({ test({ name: "failed with object", - fn() { + fn(): void { assertThrows( - () => assertEquals({ a: 1, b: "2", c: 3 }, { a: 1, b: 2, c: [3] }), + (): void => assertEquals({ a: 1, b: "2", c: 3 }, { a: 1, b: 2, c: [3] }), Error, [ ...createHeader(), |
