summaryrefslogtreecommitdiff
path: root/std/node/_fs
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_fs')
-rw-r--r--std/node/_fs/_fs_appendFile.ts6
-rw-r--r--std/node/_fs/_fs_chmod_test.ts2
-rw-r--r--std/node/_fs/_fs_chown_test.ts2
-rw-r--r--std/node/_fs/_fs_close_test.ts2
-rw-r--r--std/node/_fs/_fs_link_test.ts2
-rw-r--r--std/node/_fs/_fs_readFile.ts8
-rw-r--r--std/node/_fs/_fs_readFile_test.ts2
-rw-r--r--std/node/_fs/_fs_readlink_test.ts2
-rw-r--r--std/node/_fs/_fs_writeFile.ts8
-rw-r--r--std/node/_fs/promises/_fs_readFile.ts2
-rw-r--r--std/node/_fs/promises/_fs_readFile_test.ts2
11 files changed, 19 insertions, 19 deletions
diff --git a/std/node/_fs/_fs_appendFile.ts b/std/node/_fs/_fs_appendFile.ts
index bc30de609..cb51def67 100644
--- a/std/node/_fs/_fs_appendFile.ts
+++ b/std/node/_fs/_fs_appendFile.ts
@@ -1,10 +1,10 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import {
- Encodings,
- WriteFileOptions,
- isFileOptions,
CallbackWithError,
+ Encodings,
getOpenOptions,
+ isFileOptions,
+ WriteFileOptions,
} from "./_fs_common.ts";
import { notImplemented } from "../_utils.ts";
import { fromFileUrl } from "../path.ts";
diff --git a/std/node/_fs/_fs_chmod_test.ts b/std/node/_fs/_fs_chmod_test.ts
index de4981a8c..a9ff7ed7d 100644
--- a/std/node/_fs/_fs_chmod_test.ts
+++ b/std/node/_fs/_fs_chmod_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assert } from "../../testing/asserts.ts";
+import { assert, fail } from "../../testing/asserts.ts";
import { chmod, chmodSync } from "./_fs_chmod.ts";
Deno.test({
diff --git a/std/node/_fs/_fs_chown_test.ts b/std/node/_fs/_fs_chown_test.ts
index de7dd992f..b053a7584 100644
--- a/std/node/_fs/_fs_chown_test.ts
+++ b/std/node/_fs/_fs_chown_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assertEquals } from "../../testing/asserts.ts";
+import { assertEquals, fail } from "../../testing/asserts.ts";
import { chown, chownSync } from "./_fs_chown.ts";
// chown is difficult to test. Best we can do is set the existing user id/group
diff --git a/std/node/_fs/_fs_close_test.ts b/std/node/_fs/_fs_close_test.ts
index feaf92ab8..173213816 100644
--- a/std/node/_fs/_fs_close_test.ts
+++ b/std/node/_fs/_fs_close_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assert, assertThrows } from "../../testing/asserts.ts";
+import { assert, assertThrows, fail } from "../../testing/asserts.ts";
import { close, closeSync } from "./_fs_close.ts";
Deno.test({
diff --git a/std/node/_fs/_fs_link_test.ts b/std/node/_fs/_fs_link_test.ts
index ae97f6676..7d1cbfd4f 100644
--- a/std/node/_fs/_fs_link_test.ts
+++ b/std/node/_fs/_fs_link_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assertEquals } from "../../testing/asserts.ts";
+import { assertEquals, fail } from "../../testing/asserts.ts";
import { link, linkSync } from "./_fs_link.ts";
import { assert } from "../../testing/asserts.ts";
diff --git a/std/node/_fs/_fs_readFile.ts b/std/node/_fs/_fs_readFile.ts
index 2aef28290..e4a7d2031 100644
--- a/std/node/_fs/_fs_readFile.ts
+++ b/std/node/_fs/_fs_readFile.ts
@@ -1,12 +1,12 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import {
+ BinaryEncodings,
+ BinaryOptionsArgument,
Encodings,
- getEncoding,
FileOptionsArgument,
- TextOptionsArgument,
- BinaryOptionsArgument,
+ getEncoding,
TextEncodings,
- BinaryEncodings,
+ TextOptionsArgument,
} from "./_fs_common.ts";
import { Buffer } from "../buffer.ts";
import { fromFileUrl } from "../path.ts";
diff --git a/std/node/_fs/_fs_readFile_test.ts b/std/node/_fs/_fs_readFile_test.ts
index 2ea7831d4..bc2635e82 100644
--- a/std/node/_fs/_fs_readFile_test.ts
+++ b/std/node/_fs/_fs_readFile_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { readFile, readFileSync } from "./_fs_readFile.ts";
import * as path from "../../path/mod.ts";
-import { assertEquals, assert } from "../../testing/asserts.ts";
+import { assert, assertEquals } from "../../testing/asserts.ts";
const moduleDir = path.dirname(path.fromFileUrl(import.meta.url));
const testData = path.resolve(moduleDir, "testdata", "hello.txt");
diff --git a/std/node/_fs/_fs_readlink_test.ts b/std/node/_fs/_fs_readlink_test.ts
index 0b220caa4..61bc3b004 100644
--- a/std/node/_fs/_fs_readlink_test.ts
+++ b/std/node/_fs/_fs_readlink_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { readlink, readlinkSync } from "./_fs_readlink.ts";
-import { assertEquals, assert } from "../../testing/asserts.ts";
+import { assert, assertEquals } from "../../testing/asserts.ts";
import * as path from "../path.ts";
const testDir = Deno.makeTempDirSync();
diff --git a/std/node/_fs/_fs_writeFile.ts b/std/node/_fs/_fs_writeFile.ts
index a8ae1f586..19181ee21 100644
--- a/std/node/_fs/_fs_writeFile.ts
+++ b/std/node/_fs/_fs_writeFile.ts
@@ -4,13 +4,13 @@ import { fromFileUrl } from "../path.ts";
import { Buffer } from "../buffer.ts";
import {
- Encodings,
- WriteFileOptions,
CallbackWithError,
- isFileOptions,
- getEncoding,
checkEncoding,
+ Encodings,
+ getEncoding,
getOpenOptions,
+ isFileOptions,
+ WriteFileOptions,
} from "./_fs_common.ts";
export function writeFile(
diff --git a/std/node/_fs/promises/_fs_readFile.ts b/std/node/_fs/promises/_fs_readFile.ts
index 446c48625..fed5367ed 100644
--- a/std/node/_fs/promises/_fs_readFile.ts
+++ b/std/node/_fs/promises/_fs_readFile.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import type {
- FileOptionsArgument,
BinaryOptionsArgument,
+ FileOptionsArgument,
TextOptionsArgument,
} from "../_fs_common.ts";
import { readFile as readFileCallback } from "../_fs_readFile.ts";
diff --git a/std/node/_fs/promises/_fs_readFile_test.ts b/std/node/_fs/promises/_fs_readFile_test.ts
index 53ef373e5..2068797b9 100644
--- a/std/node/_fs/promises/_fs_readFile_test.ts
+++ b/std/node/_fs/promises/_fs_readFile_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { readFile } from "./_fs_readFile.ts";
import * as path from "../../../path/mod.ts";
-import { assertEquals, assert } from "../../../testing/asserts.ts";
+import { assert, assertEquals } from "../../../testing/asserts.ts";
const moduleDir = path.dirname(path.fromFileUrl(import.meta.url));
const testData = path.resolve(moduleDir, "..", "testdata", "hello.txt");