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/write_file_test.ts | |
parent | db597055958a9dbc9c8e633e01d9229b55d1d6ef (diff) |
rename Deno.Err -> Deno.errors (#4093)
Diffstat (limited to 'cli/js/write_file_test.ts')
-rw-r--r-- | cli/js/write_file_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/js/write_file_test.ts b/cli/js/write_file_test.ts index 9f58f4460..d788748f8 100644 --- a/cli/js/write_file_test.ts +++ b/cli/js/write_file_test.ts @@ -22,7 +22,7 @@ testPerm({ write: true }, function writeFileSyncFail(): void { Deno.writeFileSync(filename, data); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } assert(caughtError); }); @@ -37,7 +37,7 @@ testPerm({ write: false }, function writeFileSyncPerm(): void { Deno.writeFileSync(filename, data); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -64,7 +64,7 @@ testPerm({ read: true, write: true }, function writeFileSyncCreate(): void { Deno.writeFileSync(filename, data, { create: false }); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } assert(caughtError); @@ -125,7 +125,7 @@ testPerm( await Deno.writeFile(filename, data); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } assert(caughtError); } @@ -143,7 +143,7 @@ testPerm({ read: true, write: false }, async function writeFilePerm(): Promise< await Deno.writeFile(filename, data); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -175,7 +175,7 @@ testPerm({ read: true, write: true }, async function writeFileCreate(): Promise< await Deno.writeFile(filename, data, { create: false }); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } assert(caughtError); |