it('exports valid paths', () => { assert.isObject(ctx.paths, 'paths,'); assert.isDirectory(ctx.paths.startCwd, 'startCwd'); /*if (fs.existsSync(ctx.paths.config)) { assert.jsonSchemaFile(ctx.paths.config, configSchema, 'config'); }*/ // TODO assert writability when assertion is implemented in chai-fs });
assert.pathExists(path, msg); assert.notPathExists(path); assert.notPathExists(path, msg); // directory expect(path).to.be.a.directory(); expect(path).to.be.a.directory(msg); expect(path).to.not.be.a.directory(); expect(path).to.not.be.a.directory(msg); path.should.be.a.directory(); path.should.be.a.directory(msg); path.should.not.be.a.directory(); path.should.not.be.a.directory(msg); assert.isDirectory(path); assert.isDirectory(path, msg); assert.notIsDirectory(path); assert.notIsDirectory(path, msg); // directory().and.empty expect(path).to.be.a.directory().and.empty; expect(path).to.be.a.directory(msg).and.empty; expect(path).to.be.a.directory().and.not.empty; expect(path).to.be.a.directory(msg).and.not.empty; path.should.be.a.directory().and.empty; path.should.be.a.directory(msg).and.empty; path.should.be.a.directory().and.not.empty; path.should.be.a.directory(msg).and.not.empty;