diff options
Diffstat (limited to 'cli/tests/unit/dir_test.ts')
-rw-r--r-- | cli/tests/unit/dir_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/unit/dir_test.ts b/cli/tests/unit/dir_test.ts index e64baf97b..baed6f6d6 100644 --- a/cli/tests/unit/dir_test.ts +++ b/cli/tests/unit/dir_test.ts @@ -1,13 +1,13 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals, assertThrows, unitTest } from "./test_util.ts"; -unitTest({ perms: { read: true } }, function dirCwdNotNull(): void { +unitTest({ perms: { read: true } }, function dirCwdNotNull() { assert(Deno.cwd() != null); }); unitTest( { perms: { read: true, write: true } }, - function dirCwdChdirSuccess(): void { + function dirCwdChdirSuccess() { const initialdir = Deno.cwd(); const path = Deno.makeTempDirSync(); Deno.chdir(path); @@ -21,7 +21,7 @@ unitTest( }, ); -unitTest({ perms: { read: true, write: true } }, function dirCwdError(): void { +unitTest({ perms: { read: true, write: true } }, function dirCwdError() { // excluding windows since it throws resource busy, while removeSync if (["linux", "darwin"].includes(Deno.build.os)) { const initialdir = Deno.cwd(); @@ -38,7 +38,7 @@ unitTest({ perms: { read: true, write: true } }, function dirCwdError(): void { } }); -unitTest({ perms: { read: false } }, function dirCwdPermError(): void { +unitTest({ perms: { read: false } }, function dirCwdPermError() { assertThrows( () => { Deno.cwd(); @@ -50,7 +50,7 @@ unitTest({ perms: { read: false } }, function dirCwdPermError(): void { unitTest( { perms: { read: true, write: true } }, - function dirChdirError(): void { + function dirChdirError() { const path = Deno.makeTempDirSync() + "test"; assertThrows(() => { Deno.chdir(path); |