Browse Source

added command_nick test

feature/command_quit
Wayne 5 years ago
parent
commit
6e363bc651
  1. 2
      test/command_nick.js

2
test/command_nick.js

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

Loading…
Cancel
Save