This commit is contained in:
2017-05-01 19:49:34 +02:00
parent dcc85a56b8
commit 9fc581b866
5 changed files with 16 additions and 10 deletions

View File

@ -51,8 +51,9 @@ tap.test('.fs.listFileTree() -> should get a file tree', async () => {
expect(folderArrayArg).to.not.deep.include('mytest.json')
})
tap.test('.fs.toObjectFromFileTree -> should read a file tree into an Object', async () => {
tap.test('.fs.fileTreeToObject -> should read a file tree into an Object', async () => {
let fileArrayArg = await smartfile.fs.fileTreeToObject(path.resolve('./test/'), '**/*.txt')
expect(fileArrayArg[0].contents.toString()).to.not.be.null
// expect(fileArrayArg[1]).to.be.instanceof(smartfile.Smartfile)
})