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/unit/signal_test.ts | |
parent | 299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff) |
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/unit/signal_test.ts')
-rw-r--r-- | cli/tests/unit/signal_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit/signal_test.ts b/cli/tests/unit/signal_test.ts index 340ec43eb..d0cd40950 100644 --- a/cli/tests/unit/signal_test.ts +++ b/cli/tests/unit/signal_test.ts @@ -10,7 +10,7 @@ import { unitTest( { ignore: Deno.build.os !== "windows" }, - function signalsNotImplemented(): void { + function signalsNotImplemented() { assertThrows( () => { Deno.signal(1); @@ -100,7 +100,7 @@ unitTest( unitTest( { ignore: Deno.build.os === "windows", perms: { run: true, net: true } }, - async function signalStreamTest(): Promise<void> { + async function signalStreamTest() { const resolvable = deferred(); // This prevents the program from exiting. const t = setInterval(() => {}, 1000); @@ -132,7 +132,7 @@ unitTest( // This tests that pending op_signal_poll doesn't block the runtime from exiting the process. unitTest( { ignore: Deno.build.os === "windows", perms: { run: true, read: true } }, - async function signalStreamExitTest(): Promise<void> { + async function signalStreamExitTest() { const p = Deno.run({ cmd: [ Deno.execPath(), @@ -149,7 +149,7 @@ unitTest( unitTest( { ignore: Deno.build.os === "windows", perms: { run: true } }, - async function signalPromiseTest(): Promise<void> { + async function signalPromiseTest() { const resolvable = deferred(); // This prevents the program from exiting. const t = setInterval(() => {}, 1000); @@ -170,7 +170,7 @@ unitTest( // https://github.com/denoland/deno/issues/9806 unitTest( { ignore: Deno.build.os === "windows", perms: { run: true } }, - async function signalPromiseTest2(): Promise<void> { + async function signalPromiseTest2() { const resolvable = deferred(); // This prevents the program from exiting. const t = setInterval(() => {}, 1000); @@ -198,7 +198,7 @@ unitTest( unitTest( { ignore: Deno.build.os === "windows", perms: { run: true } }, - function signalShorthandsTest(): void { + function signalShorthandsTest() { let s: Deno.SignalStream; s = Deno.signals.alarm(); // for SIGALRM assert(s instanceof Deno.SignalStream); |