rename Deno.Err -> Deno.errors (#4093)

This commit is contained in:
Bartek Iwańczuk 2020-02-24 15:48:35 -05:00 committed by GitHub
parent db59705595
commit e1687c0a46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 137 additions and 137 deletions

View file

@ -27,7 +27,7 @@ testPerm({ net: true }, async function fetchConnectionError(): Promise<void> {
} catch (err_) {
err = err_;
}
assert(err instanceof Deno.Err.Http);
assert(err instanceof Deno.errors.Http);
assertStrContains(err.message, "error trying to connect");
});
@ -44,7 +44,7 @@ test(async function fetchPerm(): Promise<void> {
} catch (err_) {
err = err_;
}
assert(err instanceof Deno.Err.PermissionDenied);
assert(err instanceof Deno.errors.PermissionDenied);
assertEquals(err.name, "PermissionDenied");
});