diff options
Diffstat (limited to 'cli/js/stat_test.ts')
-rw-r--r-- | cli/js/stat_test.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cli/js/stat_test.ts b/cli/js/stat_test.ts index 3914f877c..98ef091ab 100644 --- a/cli/js/stat_test.ts +++ b/cli/js/stat_test.ts @@ -23,7 +23,7 @@ testPerm({ read: false }, async function statSyncPerm(): Promise<void> { Deno.statSync("README.md"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -36,7 +36,7 @@ testPerm({ read: true }, async function statSyncNotFound(): Promise<void> { badInfo = Deno.statSync("bad_file_name"); } catch (err) { caughtError = true; - assert(err instanceof Deno.Err.NotFound); + assert(err instanceof Deno.errors.NotFound); } assert(caughtError); @@ -63,7 +63,7 @@ testPerm({ read: false }, async function lstatSyncPerm(): Promise<void> { Deno.lstatSync("README.md"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -76,7 +76,7 @@ testPerm({ read: true }, async function lstatSyncNotFound(): Promise<void> { badInfo = Deno.lstatSync("bad_file_name"); } catch (err) { caughtError = true; - assert(err instanceof Deno.Err.NotFound); + assert(err instanceof Deno.errors.NotFound); } assert(caughtError); @@ -103,7 +103,7 @@ testPerm({ read: false }, async function statPerm(): Promise<void> { await Deno.stat("README.md"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -116,7 +116,7 @@ testPerm({ read: true }, async function statNotFound(): Promise<void> { badInfo = await Deno.stat("bad_file_name"); } catch (err) { caughtError = true; - assert(err instanceof Deno.Err.NotFound); + assert(err instanceof Deno.errors.NotFound); } assert(caughtError); @@ -143,7 +143,7 @@ testPerm({ read: false }, async function lstatPerm(): Promise<void> { await Deno.lstat("README.md"); } catch (e) { caughtError = true; - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } assert(caughtError); }); @@ -156,7 +156,7 @@ testPerm({ read: true }, async function lstatNotFound(): Promise<void> { badInfo = await Deno.lstat("bad_file_name"); } catch (err) { caughtError = true; - assert(err instanceof Deno.Err.NotFound); + assert(err instanceof Deno.errors.NotFound); } assert(caughtError); |