mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
fix(std): Use Deno.errors where possible. (#4356)
This commit is contained in:
parent
aab1acaed1
commit
0f6acf2753
13 changed files with 71 additions and 86 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue