mirror of
https://github.com/denoland/deno.git
synced 2025-08-14 15:50:28 +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,7 +1,7 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { test, testPerm, assert, assertEquals } from "./test_util.ts";
|
||||
|
||||
testPerm({ write: true }, function makeTempDirSyncSuccess() {
|
||||
testPerm({ write: true }, function makeTempDirSyncSuccess(): void {
|
||||
const dir1 = Deno.makeTempDirSync({ prefix: "hello", suffix: "world" });
|
||||
const dir2 = Deno.makeTempDirSync({ prefix: "hello", suffix: "world" });
|
||||
// Check that both dirs are different.
|
||||
|
@ -27,7 +27,7 @@ testPerm({ write: true }, function makeTempDirSyncSuccess() {
|
|||
assertEquals(err.name, "NotFound");
|
||||
});
|
||||
|
||||
test(function makeTempDirSyncPerm() {
|
||||
test(function makeTempDirSyncPerm(): void {
|
||||
// makeTempDirSync should require write permissions (for now).
|
||||
let err;
|
||||
try {
|
||||
|
@ -39,7 +39,7 @@ test(function makeTempDirSyncPerm() {
|
|||
assertEquals(err.name, "PermissionDenied");
|
||||
});
|
||||
|
||||
testPerm({ write: true }, async function makeTempDirSuccess() {
|
||||
testPerm({ write: true }, async function makeTempDirSuccess(): Promise<void> {
|
||||
const dir1 = await Deno.makeTempDir({ prefix: "hello", suffix: "world" });
|
||||
const dir2 = await Deno.makeTempDir({ prefix: "hello", suffix: "world" });
|
||||
// Check that both dirs are different.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue