mirror of
https://github.com/denoland/deno.git
synced 2025-08-17 01:00:21 +00:00
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:
parent
6cded14bdf
commit
9dfebbc949
75 changed files with 1110 additions and 931 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue