summaryrefslogtreecommitdiff
path: root/std/node/_fs
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_fs')
-rw-r--r--std/node/_fs/_fs_exists_test.ts4
-rw-r--r--std/node/_fs/_fs_readFile_test.ts8
2 files changed, 6 insertions, 6 deletions
diff --git a/std/node/_fs/_fs_exists_test.ts b/std/node/_fs/_fs_exists_test.ts
index fde68e717..b4885c87f 100644
--- a/std/node/_fs/_fs_exists_test.ts
+++ b/std/node/_fs/_fs_exists_test.ts
@@ -5,7 +5,7 @@ import { exists, existsSync } from "./_fs_exists.ts";
const { test } = Deno;
-test(async function existsFile() {
+test("existsFile", async function () {
const availableFile = await new Promise((resolve) => {
const tmpFilePath = Deno.makeTempFileSync();
exists(tmpFilePath, (exists: boolean) => {
@@ -20,7 +20,7 @@ test(async function existsFile() {
assertEquals(notAvailableFile, false);
});
-test(function existsSyncFile() {
+test("existsSyncFile", function () {
const tmpFilePath = Deno.makeTempFileSync();
assertEquals(existsSync(tmpFilePath), true);
Deno.removeSync(tmpFilePath);
diff --git a/std/node/_fs/_fs_readFile_test.ts b/std/node/_fs/_fs_readFile_test.ts
index b03d53563..429ceb3f5 100644
--- a/std/node/_fs/_fs_readFile_test.ts
+++ b/std/node/_fs/_fs_readFile_test.ts
@@ -7,7 +7,7 @@ const testData = path.resolve(
path.join("node", "_fs", "testdata", "hello.txt")
);
-test(async function readFileSuccess() {
+test("readFileSuccess", async function () {
const data = await new Promise((res, rej) => {
readFile(testData, (err, data) => {
if (err) {
@@ -21,7 +21,7 @@ test(async function readFileSuccess() {
assertEquals(new TextDecoder().decode(data as Uint8Array), "hello world");
});
-test(async function readFileEncodeUtf8Success() {
+test("readFileEncodeUtf8Success", async function () {
const data = await new Promise((res, rej) => {
readFile(testData, { encoding: "utf8" }, (err, data) => {
if (err) {
@@ -35,13 +35,13 @@ test(async function readFileEncodeUtf8Success() {
assertEquals(data as string, "hello world");
});
-test(function readFileSyncSuccess() {
+test("readFileSyncSuccess", function () {
const data = readFileSync(testData);
assert(data instanceof Uint8Array);
assertEquals(new TextDecoder().decode(data as Uint8Array), "hello world");
});
-test(function readFileEncodeUtf8Success() {
+test("readFileEncodeUtf8Success", function () {
const data = readFileSync(testData, { encoding: "utf8" });
assertEquals(typeof data, "string");
assertEquals(data as string, "hello world");