mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
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:
1 parent
1629eaf225
commit
5c1214ad38
4 files changed
+14
-14
No files matched your search
@@ -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 }}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user