Skip to content

Commit

Permalink
tests: fix directory
Browse files Browse the repository at this point in the history
brenoepics committed May 9, 2024
1 parent 9582fd4 commit 2871889
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/utils/ExtensionFilter.test.ts
Original file line number Diff line number Diff line change
@@ -59,7 +59,8 @@ describe("getFilesByExtension", () => {

const files = getFilesByExtension({ dir, extension, fsModule: mockedFs, pathModule: mockedPath });

expect(files).toEqual(["subdir\\file2.prp.ts", "file1.prp.ts"]);
const expectedArray = [path.join("subdir", "file2.prp.ts"), path.join("file1.prp.ts")];
expect(files).toEqual(expectedArray);
});

it("should throw an error when the directory does not exist", () => {

0 comments on commit 2871889

Please sign in to comment.