summaryrefslogtreecommitdiff
path: root/cli/js/stat_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-24 15:48:35 -0500
committerGitHub <noreply@github.com>2020-02-24 15:48:35 -0500
commite1687c0a4616e90d4bbde42b13a0356a7f6a1e7d (patch)
tree9aff6a2281d87a2487f8ed98b0b3f0a8733d04b5 /cli/js/stat_test.ts
parentdb597055958a9dbc9c8e633e01d9229b55d1d6ef (diff)
rename Deno.Err -> Deno.errors (#4093)
Diffstat (limited to 'cli/js/stat_test.ts')
-rw-r--r--cli/js/stat_test.ts16
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);