webapi-eca/testing/whole_system.js

18 lines
390 B
JavaScript
Raw Normal View History

2013-11-14 14:06:10 +00:00
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){
2013-11-14 14:06:10 +00:00
test.ok(false, "needs implementation");
test.done();
};
2013-11-14 14:06:10 +00:00
exports.tearDown = function(cb) {
this.srv.send('die');
this.srv = null;
cb();
};