Fix eslint warnings (#2151)

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
This commit is contained in:
Ryan Dahl 2019-04-21 16:40:10 -04:00 committed by GitHub
parent 6cded14bdf
commit 9dfebbc949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 1110 additions and 931 deletions

View file

@ -1,11 +1,11 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert, assertEquals } from "./test_util.ts";
test(function dirCwdNotNull() {
test(function dirCwdNotNull(): void {
assert(Deno.cwd() != null);
});
testPerm({ write: true }, function dirCwdChdirSuccess() {
testPerm({ write: true }, function dirCwdChdirSuccess(): void {
const initialdir = Deno.cwd();
const path = Deno.makeTempDirSync();
Deno.chdir(path);
@ -18,7 +18,7 @@ testPerm({ write: true }, function dirCwdChdirSuccess() {
Deno.chdir(initialdir);
});
testPerm({ write: true }, function dirCwdError() {
testPerm({ write: true }, function dirCwdError(): void {
// excluding windows since it throws resource busy, while removeSync
if (["linux", "mac"].includes(Deno.build.os)) {
const initialdir = Deno.cwd();
@ -39,7 +39,7 @@ testPerm({ write: true }, function dirCwdError() {
}
});
testPerm({ write: true }, function dirChdirError() {
testPerm({ write: true }, function dirChdirError(): void {
const path = Deno.makeTempDirSync() + "test";
try {
Deno.chdir(path);