UT: Rework server module to provide an object.

This commit is contained in:
Arthur Britto
2012-09-21 14:37:16 -07:00
parent 73c5b6addb
commit 169f0f487a
3 changed files with 98 additions and 54 deletions

View File

@@ -6,11 +6,11 @@ var buster = require("buster");
var server = require("./server.js");
buster.testCase("Check standalone server startup", {
"server start and stop": function (done) {
"server start and stop": function(done) {
server.start("alpha",
function (e) {
function(e) {
buster.refute(e);
server.stop("alpha", function (e) {
server.stop("alpha", function(e) {
buster.refute(e);
done();
});
@@ -18,5 +18,4 @@ buster.testCase("Check standalone server startup", {
}
});
// console.log("standalone-test.js<");
// vim:ts=4