chai-fs
chai-fs copied to clipboard
Behavior of to.be.a.directory()
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 !
Seems the same of #9