summaryrefslogtreecommitdiff
path: root/cli/tests/unit/fs_events_test.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-09-23 07:50:50 +0800
committerGitHub <noreply@github.com>2021-09-23 01:50:50 +0200
commit830586d242216e64fcd16e65cc83db9d54d63dc0 (patch)
treea84f0090faaa14879693016e9d9b13fcfbb92dcd /cli/tests/unit/fs_events_test.ts
parent87e78802b0ae65cc57d66eaa8e5265f74cf69092 (diff)
test(cli): align unit test permissions with runtime test permissions (#12189)
Diffstat (limited to 'cli/tests/unit/fs_events_test.ts')
-rw-r--r--cli/tests/unit/fs_events_test.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/unit/fs_events_test.ts b/cli/tests/unit/fs_events_test.ts
index 7c944a4e8..8da041885 100644
--- a/cli/tests/unit/fs_events_test.ts
+++ b/cli/tests/unit/fs_events_test.ts
@@ -3,13 +3,13 @@ import { assert, assertEquals, assertThrows, unitTest } from "./test_util.ts";
// TODO(ry) Add more tests to specify format.
-unitTest({ perms: { read: false } }, function watchFsPermissions() {
+unitTest({ permissions: { read: false } }, function watchFsPermissions() {
assertThrows(() => {
Deno.watchFs(".");
}, Deno.errors.PermissionDenied);
});
-unitTest({ perms: { read: true } }, function watchFsInvalidPath() {
+unitTest({ permissions: { read: true } }, function watchFsInvalidPath() {
if (Deno.build.os === "windows") {
assertThrows(
() => {
@@ -37,7 +37,7 @@ async function getTwoEvents(
}
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function watchFsBasic() {
const testDir = await Deno.makeTempDir();
const iter = Deno.watchFs(testDir);
@@ -64,7 +64,7 @@ unitTest(
// TODO(kt3k): This test is for the backward compatibility of `.return` method.
// This should be removed at 2.0
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function watchFsReturn() {
const testDir = await Deno.makeTempDir();
const iter = Deno.watchFs(testDir);
@@ -82,7 +82,7 @@ unitTest(
);
unitTest(
- { perms: { read: true, write: true } },
+ { permissions: { read: true, write: true } },
async function watchFsClose() {
const testDir = await Deno.makeTempDir();
const iter = Deno.watchFs(testDir);