diff options
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); }); |