more tests, now with 91% coverage!

This commit is contained in:
Spencer Alger
2013-12-04 17:02:34 -06:00
parent c070c9e741
commit b43621322b
10 changed files with 221 additions and 87 deletions

View File

@ -33,7 +33,7 @@ exports.start = function (cb) {
);
server.stdout.on('data', function onProcessData(line) {
line = _.trim(line.toString());
line = line.toString().trim();
var match;
if (match = line.match(/\{inet\[\/?([^:]+):(\d+)\]\}/)) {
server.__hostname = match[1];
@ -49,7 +49,7 @@ exports.start = function (cb) {
});
server.stderr.on('data', function (line) {
console.error(_.trim(line.toString()));
console.error(line.toString().trim());
});
server.on('close', function (code) {