rename some actions

This commit is contained in:
2016-06-23 18:39:02 +02:00
parent ef027d32c7
commit 7b4626586c
5 changed files with 81 additions and 28 deletions

File diff suppressed because one or more lines are too long

View File

@ -23,15 +23,15 @@ describe("smartfile".yellow,function(){
(smartfile.fs.fileExists("./test/notthere.json")).should.not.be.fulfilled();
});
});
describe(".foldersSync()",function(){
describe(".listFoldersSync()",function(){
it("should get the file type from a string",function(){
smartfile.fs.foldersSync("./test/").should.containDeep([ "testfolder"]);
smartfile.fs.foldersSync("./test/").should.not.containDeep([ "notExistentFolder"]);
smartfile.fs.listFoldersSync("./test/").should.containDeep([ "testfolder"]);
smartfile.fs.listFoldersSync("./test/").should.not.containDeep([ "notExistentFolder"]);
});
});
describe(".folders()",function(){
describe(".listFolders()",function(){
it("should get the file type from a string",function(done){
smartfile.fs.folders("./test/")
smartfile.fs.listFolders("./test/")
.then(function(folderArrayArg){
folderArrayArg.should.containDeep([ "testfolder"]);
folderArrayArg.should.not.containDeep([ "notExistentFolder"]);