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/chown_test.ts | |
parent | db597055958a9dbc9c8e633e01d9229b55d1d6ef (diff) |
rename Deno.Err -> Deno.errors (#4093)
Diffstat (limited to 'cli/js/chown_test.ts')
-rw-r--r-- | cli/js/chown_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/chown_test.ts b/cli/js/chown_test.ts index a1c12860d..61c6b8736 100644 --- a/cli/js/chown_test.ts +++ b/cli/js/chown_test.ts @@ -31,7 +31,7 @@ if (Deno.build.os !== "win") { try { await Deno.chown(filePath, 1000, 1000); } catch (e) { - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } }); @@ -44,7 +44,7 @@ if (Deno.build.os !== "win") { try { Deno.chownSync(filePath, uid, gid); } catch (e) { - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } } ); @@ -58,7 +58,7 @@ if (Deno.build.os !== "win") { try { await Deno.chown(filePath, uid, gid); } catch (e) { - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } } ); @@ -74,7 +74,7 @@ if (Deno.build.os !== "win") { // try changing the file's owner to root Deno.chownSync(filePath, 0, 0); } catch (e) { - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } Deno.removeSync(dirPath, { recursive: true }); }); @@ -92,7 +92,7 @@ if (Deno.build.os !== "win") { // try changing the file's owner to root await Deno.chown(filePath, 0, 0); } catch (e) { - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } await Deno.remove(dirPath, { recursive: true }); }); |