diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-06-02 14:24:44 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 00:24:44 -0400 |
commit | 3fe6bc1b82a10bed1d907b749b1cc200659df612 (patch) | |
tree | 02e14128039d015a7256494a50476f61785e6f33 /cli/tests/unit/dispatch_minimal_test.ts | |
parent | 8b1b4766a1e747437a2b88fcadc26162a1bec640 (diff) |
fix: Better use of @ts-expect-error (#6038)
Diffstat (limited to 'cli/tests/unit/dispatch_minimal_test.ts')
-rw-r--r-- | cli/tests/unit/dispatch_minimal_test.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/tests/unit/dispatch_minimal_test.ts b/cli/tests/unit/dispatch_minimal_test.ts index 1c7ba11f0..12cf4595c 100644 --- a/cli/tests/unit/dispatch_minimal_test.ts +++ b/cli/tests/unit/dispatch_minimal_test.ts @@ -25,10 +25,16 @@ unitTest(async function sendAsyncStackTrace(): Promise<void> { } }); +/* eslint-disable @typescript-eslint/no-namespace, @typescript-eslint/no-explicit-any,no-var */ +declare global { + namespace Deno { + var core: any; + } +} +/* eslint-enable */ + unitTest(function malformedMinimalControlBuffer(): void { - // @ts-expect-error const readOpId = Deno.core.ops()["op_read"]; - // @ts-expect-error const res = Deno.core.send(readOpId, new Uint8Array([1, 2, 3, 4, 5])); const header = res.slice(0, 12); const buf32 = new Int32Array( |