diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-11-23 17:45:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 17:45:18 +0100 |
commit | bedb2adfb065c1b0d3bcb773fbeff91230402b6b (patch) | |
tree | b4d90c36f2409f7f9b6247b74e9c111a38befcdf /cli/tests/unit/fs_events_test.ts | |
parent | 51e3db956a5927229e3f46f4eaaf317e935f8f17 (diff) |
refactor: remove "unitTest" wrapper from cli/tests/unit (#12750)
Diffstat (limited to 'cli/tests/unit/fs_events_test.ts')
-rw-r--r-- | cli/tests/unit/fs_events_test.ts | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/cli/tests/unit/fs_events_test.ts b/cli/tests/unit/fs_events_test.ts index a839e64f1..2888a05f8 100644 --- a/cli/tests/unit/fs_events_test.ts +++ b/cli/tests/unit/fs_events_test.ts @@ -1,21 +1,15 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { - assert, - assertEquals, - assertThrows, - delay, - unitTest, -} from "./test_util.ts"; +import { assert, assertEquals, assertThrows, delay } from "./test_util.ts"; // TODO(ry) Add more tests to specify format. -unitTest({ permissions: { read: false } }, function watchFsPermissions() { +Deno.test({ permissions: { read: false } }, function watchFsPermissions() { assertThrows(() => { Deno.watchFs("."); }, Deno.errors.PermissionDenied); }); -unitTest({ permissions: { read: true } }, function watchFsInvalidPath() { +Deno.test({ permissions: { read: true } }, function watchFsInvalidPath() { if (Deno.build.os === "windows") { assertThrows( () => { @@ -50,7 +44,7 @@ async function makeTempDir(): Promise<string> { return testDir; } -unitTest( +Deno.test( { permissions: { read: true, write: true } }, async function watchFsBasic() { const testDir = await makeTempDir(); @@ -77,7 +71,7 @@ unitTest( // TODO(kt3k): This test is for the backward compatibility of `.return` method. // This should be removed at 2.0 -unitTest( +Deno.test( { permissions: { read: true, write: true } }, async function watchFsReturn() { const testDir = await makeTempDir(); @@ -95,7 +89,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: true } }, async function watchFsClose() { const testDir = await makeTempDir(); |