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