Fix broken test

This commit is contained in:
Andrew Stewart 2014-11-14 11:01:57 -08:00
parent 38bf5fdfed
commit 8da2a17929
1 changed files with 2 additions and 2 deletions

View File

@ -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'));
});
});