chai-fs icon indicating copy to clipboard operation
chai-fs copied to clipboard

Behavior of to.be.a.directory()

Open giper45 opened this issue 7 years ago • 1 comments

Is this the right behavior ?

 // existentDir is a directory that exists
 expect(existentDir).to.be.a.directory() => true, ok
// nonExistentDir is a directory that doesn't exists
expect(nonExistentDir).to.not.be.a.path() => true, ok
expect(nonExistentDir).to.not.be.a.directory() => false ?  

If a directory doesn't exist shouldn't "to.not.be.a.directory()" gives false? Thanks !

giper45 avatar May 08 '17 15:05 giper45

Seems the same of #9

giper45 avatar May 08 '17 15:05 giper45