|
@ -56,6 +56,8 @@ describe("NICK no NICK given", function () { |
|
|
done("Destroyed socket without answering") |
|
|
done("Destroyed socket without answering") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(server.getUserObjectFromNickName("some_nick")) |
|
|
|
|
|
|
|
|
server.emit("connection", mockedSock) |
|
|
server.emit("connection", mockedSock) |
|
|
mockedSock.emit('data', Buffer.from("NICK \r\n", "ascii")) |
|
|
mockedSock.emit('data', Buffer.from("NICK \r\n", "ascii")) |
|
|
}) |
|
|
}) |
|
|