From 2e638601668ec4b68ab422f097dc9d537834bb75 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 23 Aug 2017 08:04:04 -0700 Subject: [PATCH] gulp: Fix tests using 'del' (#19189) --- types/gulp/test/index.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/types/gulp/test/index.ts b/types/gulp/test/index.ts index 72239a7151..853799d8c4 100644 --- a/types/gulp/test/index.ts +++ b/types/gulp/test/index.ts @@ -65,9 +65,7 @@ const test: gulp.TaskFunction = (done) => { gulp.task(test); -gulp.task('clean', (done) => { - del(['.build/'], done); -}); +gulp.task('clean', () => del(['.build/'])); gulp.task('somename', () => { return gulp.src('client/**/*.js') @@ -75,18 +73,6 @@ gulp.task('somename', () => { .pipe(gulp.dest('build')); }); -gulp.task('clean', () => { - return new Promise((resolve, reject) => { - del(['.build/'], (err: any) => { - if (err) { - reject(err); - } else { - resolve(); - } - }); - }); -}); - gulp.task('clean', () => { return promisedDel(['.build/']); });