summaryrefslogtreecommitdiff
path: root/cli/tests/unit
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-02-12 23:14:33 +0100
committerGitHub <noreply@github.com>2023-02-12 23:14:33 +0100
commit8b5be962f5dad64da1363052a3fcd4432cc08a71 (patch)
treef9c072829f8bce9eb0f1aa55b20c154154eca984 /cli/tests/unit
parentdc66fdc11e86ae060e43dbeb417738c1b1995fe6 (diff)
fix: add WouldBlock error (#17339)
Diffstat (limited to 'cli/tests/unit')
-rw-r--r--cli/tests/unit/error_test.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tests/unit/error_test.ts b/cli/tests/unit/error_test.ts
index bb7a9baf8..6fdf4f762 100644
--- a/cli/tests/unit/error_test.ts
+++ b/cli/tests/unit/error_test.ts
@@ -15,6 +15,7 @@ Deno.test("Errors work", () => {
assert(new Deno.errors.InvalidData("msg") instanceof Error);
assert(new Deno.errors.TimedOut("msg") instanceof Error);
assert(new Deno.errors.Interrupted("msg") instanceof Error);
+ assert(new Deno.errors.WouldBlock("msg") instanceof Error);
assert(new Deno.errors.WriteZero("msg") instanceof Error);
assert(new Deno.errors.UnexpectedEof("msg") instanceof Error);
assert(new Deno.errors.BadResource("msg") instanceof Error);