summaryrefslogtreecommitdiff
path: root/std/textproto/reader_test.ts
diff options
context:
space:
mode:
authorOliver Lenehan <sunsetkookaburra+github@outlook.com.au>2020-03-14 12:40:13 +1100
committerGitHub <noreply@github.com>2020-03-13 21:40:13 -0400
commit0f6acf275370cae09ffb3f6950a3926424f3b024 (patch)
treee77a2115394f36dcbd899fd8f2d5496ca7bde625 /std/textproto/reader_test.ts
parentaab1acaed163f91aa5e89b079c5312336abb2088 (diff)
fix(std): Use Deno.errors where possible. (#4356)
Diffstat (limited to 'std/textproto/reader_test.ts')
-rw-r--r--std/textproto/reader_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/textproto/reader_test.ts b/std/textproto/reader_test.ts
index 32182ce65..9eb822ecb 100644
--- a/std/textproto/reader_test.ts
+++ b/std/textproto/reader_test.ts
@@ -4,7 +4,7 @@
// license that can be found in the LICENSE file.
import { BufReader } from "../io/bufio.ts";
-import { TextProtoReader, ProtocolError } from "./mod.ts";
+import { TextProtoReader } from "./mod.ts";
import { stringsReader } from "../io/util.ts";
import {
assert,
@@ -134,7 +134,7 @@ test({
} catch (e) {
err = e;
}
- assert(err instanceof ProtocolError);
+ assert(err instanceof Deno.errors.InvalidData);
}
});
@@ -156,7 +156,7 @@ test({
} catch (e) {
err = e;
}
- assert(err instanceof ProtocolError);
+ assert(err instanceof Deno.errors.InvalidData);
}
});