summaryrefslogtreecommitdiff
path: root/js/os_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-04-21 16:40:10 -0400
committerGitHub <noreply@github.com>2019-04-21 16:40:10 -0400
commit9dfebbc9496138efbeedc431068f41662c780f3e (patch)
treec3718c3dc132d11c08c8fc18933daebf886bf787 /js/os_test.ts
parent6cded14bdf313762956d4d5361cfe8115628b535 (diff)
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
Diffstat (limited to 'js/os_test.ts')
-rw-r--r--js/os_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/os_test.ts b/js/os_test.ts
index 39429d919..d3c9e6546 100644
--- a/js/os_test.ts
+++ b/js/os_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert, assertEquals } from "./test_util.ts";
-testPerm({ env: true }, function envSuccess() {
+testPerm({ env: true }, function envSuccess(): void {
const env = Deno.env();
assert(env !== null);
// eslint-disable-next-line @typescript-eslint/camelcase
@@ -10,7 +10,7 @@ testPerm({ env: true }, function envSuccess() {
assertEquals(env.test_var, newEnv.test_var);
});
-test(function envFailure() {
+test(function envFailure(): void {
let caughtError = false;
try {
Deno.env();
@@ -23,12 +23,12 @@ test(function envFailure() {
assert(caughtError);
});
-test(function osPid() {
+test(function osPid(): void {
console.log("pid", Deno.pid);
assert(Deno.pid > 0);
});
// See complete tests in tools/is_tty_test.py
-test(function osIsTTYSmoke() {
+test(function osIsTTYSmoke(): void {
console.log(Deno.isTTY());
});