diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-08-26 18:20:22 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-08-26 18:48:04 +0200 |
commit | c8b5f1e454d5cb2bd7580bbe0ac4fa83237e9f41 (patch) | |
tree | 6982e7cd91eb17e85c89658bc078947b6a4e8c04 /cli/tests/unit/dispatch_json_test.ts | |
parent | 765235341b6075bcf64d8ebcdb61e350d251514d (diff) |
Simplify ErrBox-to-class mapping & hook it up to core json ops (#7195)
Diffstat (limited to 'cli/tests/unit/dispatch_json_test.ts')
-rw-r--r-- | cli/tests/unit/dispatch_json_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/dispatch_json_test.ts b/cli/tests/unit/dispatch_json_test.ts index fe05122d5..076c9e6f8 100644 --- a/cli/tests/unit/dispatch_json_test.ts +++ b/cli/tests/unit/dispatch_json_test.ts @@ -39,7 +39,7 @@ unitTest(function malformedJsonControlBuffer(): void { const resText = new TextDecoder().decode(resBuf); const resObj = JSON.parse(resText); assertStrictEquals(resObj.ok, undefined); - assertStrictEquals(resObj.err.kind, "SyntaxError"); + assertStrictEquals(resObj.err.className, "SyntaxError"); assertMatch(resObj.err.message, /\bexpected value\b/); }); @@ -65,6 +65,6 @@ unitTest(function invalidPromiseId(): void { const resObj = JSON.parse(resText); console.error(resText); assertStrictEquals(resObj.ok, undefined); - assertStrictEquals(resObj.err.kind, "TypeError"); + assertStrictEquals(resObj.err.className, "TypeError"); assertMatch(resObj.err.message, /\bpromiseId\b/); }); |