We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c1a45a + 5590633 commit cef55b1Copy full SHA for cef55b1
test/unit/node/util.test.ts
@@ -446,6 +446,9 @@ describe("isFile", () => {
446
it("should return true if is file", async () => {
447
expect(await util.isFile(pathToFile)).toBe(true)
448
})
449
+ it("should return false if error", async () => {
450
+ expect(await util.isFile("fakefile.txt")).toBe(false)
451
+ })
452
453
454
describe("humanPath", () => {
0 commit comments