Removing wrong conditional in api

This commit is contained in:
Javier Cervantes 2014-04-24 11:25:45 -05:00
parent 394691a8f2
commit f05025ba68
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ namespace("Cylon", function() {
this.opts = opts; this.opts = opts;
this.host = opts.host || "127.0.0.1"; this.host = opts.host || "127.0.0.1";
this.port = opts.port || "3000"; this.port = opts.port || "3000";
this.ssl = opts.ssl == false ? false : {}; this.ssl = opts.ssl;
this.master = opts.master; this.master = opts.master;
this.server = express(); this.server = express();

View File

@ -14,7 +14,7 @@ describe("API", function() {
beforeEach(function() { beforeEach(function() {
stub(https, 'createServer').returns({ listen: spy() }); stub(https, 'createServer').returns({ listen: spy() });
opts = { master: { name: 'master' } } opts = { master: { name: 'master' }, ssl: {} }
api = new API(opts); api = new API(opts);
}); });