UNPKG

coffea

Version:

event based and extensible nodejs irc client library with multi-network support

22 lines (18 loc) 531 B
/*jslint node: true*/ /*jslint expr: true*/ /*global describe, it*/ "use strict"; var irc = require('../..'); var Stream = require('stream').PassThrough; describe('ping.js', function () { describe('on PING', function () { it('should emit PING', function (done) { var stream = new Stream(), client = irc(stream, false); client.on('ping', function () { done(); }); stream.write('PING :rothfuss.freenode.net\r\n'); }); }); });