diff --git a/spec/lib/basestar.spec.js b/spec/lib/basestar.spec.js index 35dcda6..5e004aa 100644 --- a/spec/lib/basestar.spec.js +++ b/spec/lib/basestar.spec.js @@ -146,7 +146,7 @@ describe('Basestar', function() { basestar.on('testevent', eventSpy); basestar.defineDriverEvent({ eventName: "testevent" }); - basestar.adaptor.emit("testevent", "data"); + basestar.connection.emit("testevent", "data"); assert(eventSpy.calledWith('data')); }); @@ -157,7 +157,7 @@ describe('Basestar', function() { basestar.on('testevent', eventSpy); basestar.defineDriverEvent("testevent"); - basestar.adaptor.emit("testevent", "data"); + basestar.connection.emit("testevent", "data"); assert(eventSpy.calledWith('data')); }); });