Fix broken test.
This commit is contained in:
parent
3d2842567b
commit
cd23d989cf
|
@ -67,7 +67,7 @@ describe("Cylon", function() {
|
||||||
var API, opts, instance;
|
var API, opts, instance;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
instance = { listen: spy() };
|
instance = { start: spy() };
|
||||||
opts = { https: false };
|
opts = { https: false };
|
||||||
API = stub().returns(instance);
|
API = stub().returns(instance);
|
||||||
|
|
||||||
|
@ -87,8 +87,8 @@ describe("Cylon", function() {
|
||||||
expect(Cylon.apiInstances).to.be.eql([instance]);
|
expect(Cylon.apiInstances).to.be.eql([instance]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("tells the API instance to start listening", function() {
|
it("tells the API instance to start", function() {
|
||||||
expect(instance.listen).to.be.called;
|
expect(instance.start).to.be.called;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue