diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-05-27 00:02:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 10:02:16 -0400 |
commit | 228f9c207f8320908325a553c96e465da08fc617 (patch) | |
tree | 54f2aba9f577d713dcbed5882ae7ae9e53c7baaf /cli/tests/unit/globals_test.ts | |
parent | 24c36fd8625df6b276108109478a62b4661a0b3f (diff) |
Use ts-expect-error instead of ts-ignore. (#5869)
Diffstat (limited to 'cli/tests/unit/globals_test.ts')
-rw-r--r-- | cli/tests/unit/globals_test.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cli/tests/unit/globals_test.ts b/cli/tests/unit/globals_test.ts index aa8b4f46e..bb5e5c604 100644 --- a/cli/tests/unit/globals_test.ts +++ b/cli/tests/unit/globals_test.ts @@ -48,12 +48,12 @@ unitTest(function webAssemblyExists(): void { unitTest(function DenoNamespaceImmutable(): void { const denoCopy = window.Deno; try { - // @ts-ignore + // @ts-expect-error Deno = 1; } catch {} assert(denoCopy === Deno); try { - // @ts-ignore + // @ts-expect-error window.Deno = 1; } catch {} assert(denoCopy === Deno); @@ -64,7 +64,7 @@ unitTest(function DenoNamespaceImmutable(): void { const { readFile } = Deno; try { - // @ts-ignore + // @ts-expect-error Deno.readFile = 1; } catch {} assert(readFile === Deno.readFile); @@ -73,19 +73,19 @@ unitTest(function DenoNamespaceImmutable(): void { } catch {} assert(readFile === Deno.readFile); - // @ts-ignore + // @ts-expect-error const { print } = Deno.core; try { - // @ts-ignore + // @ts-expect-error Deno.core.print = 1; } catch {} - // @ts-ignore + // @ts-expect-error assert(print === Deno.core.print); try { - // @ts-ignore + // @ts-expect-error delete Deno.core.print; } catch {} - // @ts-ignore + // @ts-expect-error assert(print === Deno.core.print); }); |