diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-12 21:55:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 15:55:05 -0400 |
commit | 46b1c653c0c433932908b7610f60b409af134c76 (patch) | |
tree | 00d8b59c8c4e9b90538d548ebd828d2b3f94d4fd /cli/tests | |
parent | a20504642d083172f297543f9788b128e9c2e0bc (diff) |
refactor(deno): remove concept of bin & json ops (#10145)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/dispatch_test.ts (renamed from cli/tests/unit/dispatch_bin_test.ts) | 10 | ||||
-rw-r--r-- | cli/tests/unit/unit_tests.ts | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit/dispatch_bin_test.ts b/cli/tests/unit/dispatch_test.ts index 01f29d0bc..6805d1af7 100644 --- a/cli/tests/unit/dispatch_bin_test.ts +++ b/cli/tests/unit/dispatch_test.ts @@ -9,7 +9,7 @@ unitTest(async function sendAsyncStackTrace() { } catch (error) { const s = error.stack.toString(); console.log(s); - assertStringIncludes(s, "dispatch_bin_test.ts"); + assertStringIncludes(s, "dispatch_test.ts"); assertStringIncludes(s, "read"); } }); @@ -21,10 +21,10 @@ declare global { } } -unitTest(async function binOpsAsyncBadResource(): Promise<void> { +unitTest(async function opsAsyncBadResource(): Promise<void> { try { const nonExistingRid = 9999; - await Deno.core.binOpAsync( + await Deno.core.opAsync( "op_read_async", nonExistingRid, new Uint8Array(0), @@ -36,10 +36,10 @@ unitTest(async function binOpsAsyncBadResource(): Promise<void> { } }); -unitTest(function binOpsSyncBadResource(): void { +unitTest(function opsSyncBadResource(): void { try { const nonExistingRid = 9999; - Deno.core.binOpSync("op_read_sync", nonExistingRid, new Uint8Array(0)); + Deno.core.opSync("op_read_sync", nonExistingRid, new Uint8Array(0)); } catch (e) { if (!(e instanceof Deno.errors.BadResource)) { throw e; diff --git a/cli/tests/unit/unit_tests.ts b/cli/tests/unit/unit_tests.ts index 0dcbfe80b..ebf87651d 100644 --- a/cli/tests/unit/unit_tests.ts +++ b/cli/tests/unit/unit_tests.ts @@ -15,7 +15,7 @@ import "./console_test.ts"; import "./copy_file_test.ts"; import "./custom_event_test.ts"; import "./dir_test.ts"; -import "./dispatch_bin_test.ts"; +import "./dispatch_test.ts"; import "./error_stack_test.ts"; import "./event_test.ts"; import "./event_target_test.ts"; |