diff --git a/batch/job_adapter.js b/batch/job_adapter.js new file mode 100644 index 00000000..0b8c2a9e --- /dev/null +++ b/batch/job_adapter.js @@ -0,0 +1,11 @@ +'use strict'; + +function JobAdapter() { + +} + +module.exports = JobAdapter; + +JobAdapter.prototype.parse = function (job) { + +}; diff --git a/package.json b/package.json index 4e2db255..8b83d6b8 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,9 @@ "sqlite3": "~3.0.8" }, "scripts": { - "test": "make test-all" + "test": "make test-all", + "test:unit": "mocha test/unit/**/*.js", + "test:unit:watch": "npm run test:unit -- -w" }, "engines": { "node": ">=0.8 <0.11", diff --git a/test/unit/batch/job_adapter.js b/test/unit/batch/job_adapter.js new file mode 100644 index 00000000..c7b50198 --- /dev/null +++ b/test/unit/batch/job_adapter.js @@ -0,0 +1,3 @@ +'use strict'; + +var JobAdapter = require('../../../batch/job_adapter');