webapi-eca/testing/whole_system.js
2013-11-14 15:06:10 +01:00

18 lines
No EOL
390 B
JavaScript

var path = require('path');
//FIXME handle EADDR in use!
exports.setUp = function(cb) {
this.srv = require('child_process').fork(path.resolve(__dirname, '..', 'js', 'server'), ['2']);
cb();
};
exports.testSystem = function(test){
test.ok(false, "needs implementation");
test.done();
};
exports.tearDown = function(cb) {
this.srv.send('die');
this.srv = null;
cb();
};