Skip to content

Commit

Permalink
style: update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreDemailly committed Jun 24, 2023
1 parent 24ce3e2 commit 110f510
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Import Node.js dependencies
// Import Node.js Dependencies
import { opendir } from "fs/promises";
import { readdirSync } from "fs";
import path from "path";
Expand Down
10 changes: 5 additions & 5 deletions test/walk.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Require Node.js Dependencies
// Import Node.js Dependencies
import test from "node:test";
import assert from "node:assert";
import path from "node:path";
import { fileURLToPath } from "node:url";

// Require Internal Dependencies
// Import Internal Dependencies
import { walk, walkSync } from "../index.js";

// CONSTANTS
Expand All @@ -14,7 +14,7 @@ const kRootLocation = path.join(__dirname, "..");
const kFixturesDir = path.join(__dirname, "fixtures");
const kExpectedJSFiles = ["index.js", "test/walk.js"].map((fileLocation) => path.normalize(fileLocation));

test("should return all JavaScript files of the project (Asynchronously)", async(t) => {
test("should return all JavaScript files of the project (Asynchronously)", async() => {
const files = [];
const options = { extensions: new Set([".js"]) };

Expand All @@ -30,7 +30,7 @@ test("should return all JavaScript files of the project (Asynchronously)", async
assert.deepEqual(files.sort(), kExpectedJSFiles);
});

test("should return all JavaScript files of the project (Synchronously)", async(t) => {
test("should return all JavaScript files of the project (Synchronously)", async() => {
const options = { extensions: new Set([".js"]) };

const files = [...walkSync(kRootLocation, options)]
Expand All @@ -40,7 +40,7 @@ test("should return all JavaScript files of the project (Synchronously)", async(
assert.deepEqual(files, kExpectedJSFiles);
});

test("should return all files in the fixtures directory", async(t) => {
test("should return all files in the fixtures directory", async() => {
const files = [...walkSync(kFixturesDir)]
.filter(([dirent]) => dirent.isFile())
.map(([, absoluteFileLocation]) => path.relative(kRootLocation, absoluteFileLocation));
Expand Down

0 comments on commit 110f510

Please sign in to comment.