Added npm's tasks in order to run unit test in watch mode

This commit is contained in:
Daniel García Aubert 2016-05-06 18:01:57 +02:00
parent 612198431a
commit d4206a70d8
3 changed files with 17 additions and 1 deletions

11
batch/job_adapter.js Normal file
View File

@ -0,0 +1,11 @@
'use strict';
function JobAdapter() {
}
module.exports = JobAdapter;
JobAdapter.prototype.parse = function (job) {
};

View File

@ -45,7 +45,9 @@
"sqlite3": "~3.0.8" "sqlite3": "~3.0.8"
}, },
"scripts": { "scripts": {
"test": "make test-all" "test": "make test-all",
"test:unit": "mocha test/unit/**/*.js",
"test:unit:watch": "npm run test:unit -- -w"
}, },
"engines": { "engines": {
"node": ">=0.8 <0.11", "node": ">=0.8 <0.11",

View File

@ -0,0 +1,3 @@
'use strict';
var JobAdapter = require('../../../batch/job_adapter');