From c4d5b01acfe0cac31f94743a57e8e619178ba563 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 25 Aug 2020 09:43:54 +1000 Subject: feat: update to TypeScript 4.0 (#6514) --- std/testing/asserts_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'std/testing/asserts_test.ts') diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts index 65645b06b..13dba756d 100644 --- a/std/testing/asserts_test.ts +++ b/std/testing/asserts_test.ts @@ -301,7 +301,9 @@ const createHeader = (): string[] => [ "", "", ` ${gray(bold("[Diff]"))} ${red(bold("Actual"))} / ${ - green(bold("Expected")) + green( + bold("Expected"), + ) }`, "", "", @@ -484,10 +486,7 @@ Deno.test({ Deno.test({ name: "strictly unequal fail case", fn(): void { - assertThrows( - () => assertNotStrictEquals(1, 1), - AssertionError, - ); + assertThrows(() => assertNotStrictEquals(1, 1), AssertionError); }, }); @@ -499,6 +498,7 @@ Deno.test({ assertArrayContains([true, false], [true]); const value = { x: 1 }; assertStrictEquals(value, value); + // eslint-disable-next-line @typescript-eslint/ban-types assertNotStrictEquals(value, { x: 1 }); }, }); -- cgit v1.2.3