diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-08-25 09:43:54 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 19:43:54 -0400 |
commit | c4d5b01acfe0cac31f94743a57e8e619178ba563 (patch) | |
tree | 1987fe2e23c4db59a44159f4c7d21ecc61be4ad3 /std/testing/asserts_test.ts | |
parent | 9b0f9c876529696c8008dda8b3606e34d3fe98dc (diff) |
feat: update to TypeScript 4.0 (#6514)
Diffstat (limited to 'std/testing/asserts_test.ts')
-rw-r--r-- | std/testing/asserts_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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<boolean>([true, false], [true]); const value = { x: 1 }; assertStrictEquals<typeof value>(value, value); + // eslint-disable-next-line @typescript-eslint/ban-types assertNotStrictEquals<object>(value, { x: 1 }); }, }); |