lib/mocha-srv.js
function defaultOpts (opts) {
    opts = opts || {};
    opts.title = opts.title || 'Test Suite';
    opts.ui = (opts.ui && opts.ui.toLowerCase() === 'tdd' ? 'tdd' : 'bdd');
    opts.path = path.resolve(opts.path || '.');
    opts.host = opts.host || 'localhost';
    opts.port = opts.port || 3000;
    return opts;
}
function defaultOpts (opts) {
    opts = opts || {};
    opts.title = opts.title || 'Test Suite';
    opts.ui = (opts.ui && opts.ui.toLowerCase() === 'tdd' ? 'tdd' : 'bdd');
    opts.path = path.resolve(opts.path || '.');
    opts.host = opts.host || 'localhost';
    opts.port = opts.port || 3000;
    return opts;
}
function defaultOpts ( opts ) { opts = opts || { } ; opts . title = opts . title || 'Test Suite' ; opts . ui = ( opts . ui && opts . ui . toLowerCase ( ) === 'tdd' ? 'tdd' : 'bdd' ) ; opts . path = path . resolve ( opts . path || '.' ) ; opts . host = opts . host || 'localhost' ; opts . port = opts . port || 3000 ; return opts ; }
Default server options
Default server options