21 lines
548 B
TypeScript
21 lines
548 B
TypeScript
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()
|
|
smartgulp.src(['./test/testfiles/**/*.md'])
|
|
.pipe(gulpFunction.forEach(async (fileArg) => {
|
|
console.log(fileArg.path)
|
|
}))
|
|
.pipe(gulpFunction.atEnd(async () => {
|
|
done.resolve()
|
|
}))
|
|
await done.promise
|
|
})
|
|
|
|
tap.start()
|