Rename connected and dropped events

Rename the connector events connected and dropped to connect and drop
respectively to be consistent with common Node.js names for events like
close.
This commit is contained in:
Hornwitser committed 2020-05-07 12:36:43 +02:00
1 parent 1629eaf225
commit 5c1214ad38
4 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -89,8 +89,8 @@ describe("lib/link/connectors", function() {
testConnector._processHandshake({ seq: 1, type: 'hello', data: { version: "test", plugins: {} }});
assert(called, "register was not called");
});
it("should emit connected on ready", async function() {
let result = events.once(testConnector, 'connected');
it("should emit connect on ready", async function() {
let result = events.once(testConnector, "connect");
testConnector._processHandshake(
{ seq: 1, type: 'ready', data: { session_token: "x", heartbeat_interval: 10 }}
);