diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-05 13:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 13:08:58 +0200 |
commit | 3f0cf9619fce71a8898c495501df4bdb0e07e735 (patch) | |
tree | 1b8af2c832f8344f9a39f55326d576eab63f447f /cli/tests/permission_test.ts | |
parent | 299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff) |
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/permission_test.ts')
-rw-r--r-- | cli/tests/permission_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/permission_test.ts b/cli/tests/permission_test.ts index ac42b7d69..057e935af 100644 --- a/cli/tests/permission_test.ts +++ b/cli/tests/permission_test.ts @@ -2,20 +2,20 @@ const name = Deno.args[0]; // deno-lint-ignore no-explicit-any const test: { [key: string]: (...args: any[]) => void | Promise<void> } = { - readRequired(): Promise<void> { + readRequired() { Deno.readFileSync("README.md"); return Promise.resolve(); }, - writeRequired(): void { + writeRequired() { Deno.makeTempDirSync(); }, - envRequired(): void { + envRequired() { Deno.env.get("home"); }, - netRequired(): void { + netRequired() { Deno.listen({ transport: "tcp", port: 4541 }); }, - runRequired(): void { + runRequired() { const p = Deno.run({ cmd: Deno.build.os === "windows" ? ["cmd.exe", "/c", "echo hello"] |