From 6c4da0e429eb47dae6a220c5576a39f137615bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 16 Sep 2020 22:22:43 +0200 Subject: refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521) Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync --- cli/tests/unit/dispatch_json_test.ts | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'cli/tests/unit/dispatch_json_test.ts') diff --git a/cli/tests/unit/dispatch_json_test.ts b/cli/tests/unit/dispatch_json_test.ts index 076c9e6f8..29127a85c 100644 --- a/cli/tests/unit/dispatch_json_test.ts +++ b/cli/tests/unit/dispatch_json_test.ts @@ -2,28 +2,8 @@ import { assertStrictEquals, unitTest, assertMatch, - unreachable, } from "./test_util.ts"; -const openErrorStackPattern = new RegExp( - `^.* - at unwrapResponse \\(.*dispatch_json\\.js:.*\\) - at sendAsync \\(.*dispatch_json\\.js:.*\\) - at async Object\\.open \\(.*files\\.js:.*\\).*$`, - "ms", -); - -unitTest( - { perms: { read: true } }, - async function sendAsyncStackTrace(): Promise { - await Deno.open("nonexistent.txt") - .then(unreachable) - .catch((error): void => { - assertMatch(error.stack, openErrorStackPattern); - }); - }, -); - declare global { // eslint-disable-next-line @typescript-eslint/no-namespace namespace Deno { -- cgit v1.2.3