|
@ -16,13 +16,7 @@ describe("QUIT OK", function () { |
|
|
server.emit('connection', mockedSock) |
|
|
server.emit('connection', mockedSock) |
|
|
mockedSock.emit('data', Buffer.from("NICK nick" + i + "\r\n", "ascii")) |
|
|
mockedSock.emit('data', Buffer.from("NICK nick" + i + "\r\n", "ascii")) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
mockedSock.quit("gone to have lunch") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mockedSock.destroy = function () { |
|
|
|
|
|
done("Destroyed socket without answering") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
console.log(server.getUserlist()) |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |