mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor: remove unneeded ErrorKinds (#3936)
This commit is contained in:
parent
d9efb8c02a
commit
dd8a109481
66 changed files with 553 additions and 620 deletions
|
@ -143,8 +143,7 @@ Deno.test(async function ensureLinkDirectoryIfItExist(): Promise<void> {
|
|||
await assertThrowsAsync(
|
||||
async (): Promise<void> => {
|
||||
await ensureLink(testDir, linkDir);
|
||||
},
|
||||
Deno.DenoError
|
||||
}
|
||||
// "Operation not permitted (os error 1)" // throw an local matching test
|
||||
// "Access is denied. (os error 5)" // throw in CI
|
||||
);
|
||||
|
@ -163,8 +162,7 @@ Deno.test(function ensureLinkSyncDirectoryIfItExist(): void {
|
|||
assertThrows(
|
||||
(): void => {
|
||||
ensureLinkSync(testDir, linkDir);
|
||||
},
|
||||
Deno.DenoError
|
||||
}
|
||||
// "Operation not permitted (os error 1)" // throw an local matching test
|
||||
// "Access is denied. (os error 5)" // throw in CI
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue