Current and Longest streak calculation fixed
Minor refactoring and unit tests added After CR: user-stats file moved to util folder, export keywork added to exported functions, new line added at the end of gulp file User-stats-test file moved to replicate user-stats path in test folder
This commit is contained in:
14
gulpfile.js
14
gulpfile.js
@@ -39,8 +39,11 @@ var Rx = require('rx'),
|
||||
|
||||
// lint
|
||||
jsonlint = require('gulp-jsonlint'),
|
||||
eslint = require('gulp-eslint');
|
||||
|
||||
eslint = require('gulp-eslint'),
|
||||
|
||||
// unit-tests
|
||||
tape = require('gulp-tape'),
|
||||
tapSpec = require('tap-spec');
|
||||
|
||||
Rx.config.longStackSupport = true;
|
||||
|
||||
@@ -533,3 +536,10 @@ gulp.task('default', [
|
||||
'watch',
|
||||
'sync'
|
||||
]);
|
||||
|
||||
gulp.task('test', function() {
|
||||
return gulp.src('test/**/*.js')
|
||||
.pipe(tape({
|
||||
reporter: tapSpec()
|
||||
}));
|
||||
});
|
||||
|
Reference in New Issue
Block a user