smartgulp/test/test.ts

21 lines
548 B
TypeScript
Raw Normal View History

2017-04-29 22:25:31 +00:00
import { expect, tap } from 'tapbundle'
import * as smartgulp from '../dist/index'
import * as smartstream from 'smartstream'
import * as gulpFunction from 'gulp-function'
import * as smartq from 'smartq'
tap.test('smartgulp.src -> should read a directoy', async () => {
let done = smartq.defer()
2017-04-29 23:13:53 +00:00
smartgulp.src(['./test/testfiles/**/*.md'])
2017-04-29 22:25:31 +00:00
.pipe(gulpFunction.forEach(async (fileArg) => {
console.log(fileArg.path)
}))
.pipe(gulpFunction.atEnd(async () => {
2017-04-29 23:13:53 +00:00
done.resolve()
2017-04-29 22:25:31 +00:00
}))
await done.promise
})
tap.start()