do not accept directories in fileTree

This commit is contained in:
2017-05-27 01:07:32 +02:00
parent c8a21e8228
commit d22e0cde8f
5 changed files with 10 additions and 3 deletions

View File

@ -164,8 +164,11 @@ tap.test('.Smartfile -> should produce vinyl compatible files', async () => {
let localSmartfile = smartfileArray[ 0 ]
expect(localSmartfile).to.be.instanceof(smartfile.Smartfile)
expect(localSmartfile.contents).to.be.instanceof(Buffer)
// tslint:disable-next-line:no-unused-expression
expect(localSmartfile.isBuffer()).to.be.true
// tslint:disable-next-line:no-unused-expression
expect(localSmartfile.isDirectory()).to.be.false
// tslint:disable-next-line:no-unused-expression
expect(localSmartfile.isNull()).to.be.false
})

View File

@ -0,0 +1 @@
okidoks

View File

@ -0,0 +1 @@
hi