Skip to content

Commit

Permalink
Fixes broken unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
traviswimer committed Jul 4, 2022
1 parent c071072 commit 227de53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/callback.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dirToJson from "./main.js";
import dirToJson from "./main";
import { Options } from "./createDirectoryObject.js";

export const INVALID_CALLBACK_ERROR = `The "dir-to-json/callback" module requires a valid callback function`;
Expand Down
2 changes: 1 addition & 1 deletion src/createDirectoryObject.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "fs/promises";
import path from "path";
import sortByFileOrDir from "./options/sortByFileOrDir.js";
import sortByFileOrDir from "./options/sortByFileOrDir";

export interface Options {
sortType?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createDirectoryObject, { Options } from "./createDirectoryObject.js";
import createDirectoryObject, { Options } from "./createDirectoryObject";

export const INVALID_PATH_ERROR = `"path" parameter must be a string`;
export const INVALID_OPTIONS_ERROR = `"options" parameter must be an object`;
Expand Down
2 changes: 1 addition & 1 deletion src/options/sortByFileOrDir.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FileInfo } from "../createDirectoryObject.js";
import { FileInfo } from "../createDirectoryObject";

export default function sortByFileOrDir(childrenArray: FileInfo[]) {
// Move directories to the beginning of the array
Expand Down

0 comments on commit 227de53

Please sign in to comment.