fix(std): Use Deno.errors where possible. (#4356)

This commit is contained in:
Oliver Lenehan 2020-03-14 12:40:13 +11:00 committed by GitHub
parent aab1acaed1
commit 0f6acf2753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 71 additions and 86 deletions

View file

@ -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> {