Removing wrong conditional in api
This commit is contained in:
parent
394691a8f2
commit
f05025ba68
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue