now cleans pipe correctly

This commit is contained in:
2017-04-30 01:07:30 +02:00
parent b55a511fcb
commit f9e7bf450b
25 changed files with 241 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
import { expect, tap } from 'tapbundle'
import * as smartgulp from 'smartgulp'
let gulp = require('gulp')
import * as gulpFunction from '../dist/index'
@@ -10,7 +11,7 @@ let smartq = require('smartq')
tap.test('should run through smoothly with ' + "'forEach'", async (tools) => {
let done = smartq.defer()
let counter = 0
gulp.src('./test/*.md')
gulp.src('./test/testfiles/*.md')
.pipe(gulpFunction.forEach(async () => {
counter++
if (counter === 2) {
@@ -23,7 +24,7 @@ tap.test('should run through smoothly with ' + "'forEach'", async (tools) => {
tap.test('should run through smoothly with ' + "'forEach'", async (tools) => {
let done = smartq.defer()
let counter = 0
gulp.src('./test/*.md')
smartgulp.src(['./test/testfiles/*.md'])
.pipe(gulpFunction.atEnd(async () => {
console.log('atEnd')
done.resolve()