summaryrefslogtreecommitdiff
path: root/std/encoding/binary_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/encoding/binary_test.ts
parentaab1acaed163f91aa5e89b079c5312336abb2088 (diff)
fix(std): Use Deno.errors where possible. (#4356)
Diffstat (limited to 'std/encoding/binary_test.ts')
-rw-r--r--std/encoding/binary_test.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/std/encoding/binary_test.ts b/std/encoding/binary_test.ts
index 9b541746b..a9f116ebc 100644
--- a/std/encoding/binary_test.ts
+++ b/std/encoding/binary_test.ts
@@ -1,7 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertThrowsAsync } from "../testing/asserts.ts";
-import { UnexpectedEOFError } from "../io/bufio.ts";
import {
getNBytes,
putVarbig,
@@ -27,7 +26,7 @@ Deno.test(async function testGetNBytesThrows(): Promise<void> {
const buff = new Deno.Buffer(data.buffer);
assertThrowsAsync(async () => {
await getNBytes(buff, 8);
- }, UnexpectedEOFError);
+ }, Deno.errors.UnexpectedEof);
});
Deno.test(async function testPutVarbig(): Promise<void> {