summaryrefslogtreecommitdiff
path: root/js/os_test.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-03-10 04:30:38 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-03-09 12:30:38 -0500
commit034e2cc02829c9244b32232074c7a48af827a2fb (patch)
treebade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/os_test.ts
parent8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff)
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/os_test.ts')
-rw-r--r--js/os_test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/os_test.ts b/js/os_test.ts
index 0773bf685..39429d919 100644
--- a/js/os_test.ts
+++ b/js/os_test.ts
@@ -4,6 +4,7 @@ import { test, testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ env: true }, function envSuccess() {
const env = Deno.env();
assert(env !== null);
+ // eslint-disable-next-line @typescript-eslint/camelcase
env.test_var = "Hello World";
const newEnv = Deno.env();
assertEquals(env.test_var, newEnv.test_var);
@@ -12,7 +13,7 @@ testPerm({ env: true }, function envSuccess() {
test(function envFailure() {
let caughtError = false;
try {
- const env = Deno.env();
+ Deno.env();
} catch (err) {
caughtError = true;
assertEquals(err.kind, Deno.ErrorKind.PermissionDenied);