added tests for Smartfile instance

This commit is contained in:
2017-04-30 18:13:17 +02:00
parent 9d02fccc01
commit 4899d454eb
6 changed files with 172 additions and 60 deletions

View File

@ -221,10 +221,11 @@ export let fileTreeToObject = async (dirPathArg: string, miniMatchFilter: string
let smartfileArray: Smartfile[] = []
for (let filePath of fileTree) {
smartfileArray.push(new Smartfile({
path: filePath,
contentBuffer: new Buffer(toStringSync(
plugins.path.join(dirPath, filePath)
))
)),
base: dirPath,
path: filePath
}))
}
return smartfileArray