diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-24 15:48:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 15:48:35 -0500 |
commit | e1687c0a4616e90d4bbde42b13a0356a7f6a1e7d (patch) | |
tree | 9aff6a2281d87a2487f8ed98b0b3f0a8733d04b5 /cli/js/copy_file_test.ts | |
parent | db597055958a9dbc9c8e633e01d9229b55d1d6ef (diff) |
rename Deno.Err -> Deno.errors (#4093)
Diffstat (limited to 'cli/js/copy_file_test.ts')
-rw-r--r-- | cli/js/copy_file_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/js/copy_file_test.ts b/cli/js/copy_file_test.ts index 567b246b7..aa6daeebf 100644 --- a/cli/js/copy_file_test.ts +++ b/cli/js/copy_file_test.ts @@ -43,7 +43,7 @@ testPerm({ write: true, read: true }, function copyFileSyncFailure(): void { err = e; } assert(!!err); - assert(err instanceof Deno.Err.NotFound); + assert(err instanceof Deno.errors.NotFound); }); testPerm({ write: true, read: false }, function copyFileSyncPerm1(): void { @@ -52,7 +52,7 @@ testPerm({ write: true, read: false }, function copyFileSyncPerm1(): void { Deno.copyFileSync("/from.txt", "/to.txt"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -63,7 +63,7 @@ testPerm({ write: false, read: true }, function copyFileSyncPerm2(): void { Deno.copyFileSync("/from.txt", "/to.txt"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -110,7 +110,7 @@ testPerm({ read: true, write: true }, async function copyFileFailure(): Promise< err = e; } assert(!!err); - assert(err instanceof Deno.Err.NotFound); + assert(err instanceof Deno.errors.NotFound); }); testPerm( @@ -138,7 +138,7 @@ testPerm({ read: false, write: true }, async function copyFilePerm1(): Promise< await Deno.copyFile("/from.txt", "/to.txt"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -151,7 +151,7 @@ testPerm({ read: true, write: false }, async function copyFilePerm2(): Promise< await Deno.copyFile("/from.txt", "/to.txt"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); |