Skip to content

Commit cef55b1

Browse files
authored
Merge 5590633 into 7c1a45a
2 parents 7c1a45a + 5590633 commit cef55b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/node/util.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ describe("isFile", () => {
446446
it("should return true if is file", async () => {
447447
expect(await util.isFile(pathToFile)).toBe(true)
448448
})
449+
it("should return false if error", async () => {
450+
expect(await util.isFile("fakefile.txt")).toBe(false)
451+
})
449452
})
450453

451454
describe("humanPath", () => {

0 commit comments

Comments
 (0)