summaryrefslogtreecommitdiff
path: root/cli/tests/unit/dispatch_json_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/dispatch_json_test.ts')
-rw-r--r--cli/tests/unit/dispatch_json_test.ts4
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/);
});