Skip to content

Commit 1e1f038

Browse files
committed
refact ava test
1 parent 19f0b44 commit 1e1f038

File tree

3 files changed

+3
-188
lines changed

3 files changed

+3
-188
lines changed

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ gulp.task('watch', function () {
1212
gulp.watch(sourcePath, ['ava'])
1313
})
1414

15-
gulp.task('ava', function () {
16-
return gulp.src(sourcePath, {read: false})
15+
gulp.task('test', function () {
16+
return gulp.src('test/**/*.js')
1717
// gulp-ava needs filepaths so you can't have any plugins before it
1818
.pipe(ava())
1919
})
@@ -32,4 +32,4 @@ gulp.task('kp', function () {
3232
kp(3000, pre)
3333
})
3434

35-
gulp.task('default', ['ava', 'watch'])
35+
gulp.task('default', ['test', 'watch'])

test/controller/api.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

test/controller/users_controller.js

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)