Skip to content

Commit

Permalink
fix: add error message expectation in canReaddir test
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jan 3, 2025
1 parent 703c9c3 commit f6eb58b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ describe("fs", () => {
it("should reject for file path", async () => {
const filePath = join(tempDir, "test.txt");
await writeFile(filePath, "test");

await expect(canReaddir(filePath, 1000)).rejects.toThrow();
await expect(canReaddir(filePath, 1000)).rejects.toThrow(/ENOTDIR/);
});

it("should reject on timeout", async () => {
Expand Down

0 comments on commit f6eb58b

Please sign in to comment.