You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
359 B

// Run this test with:
// mocha test/manual.gracefulexit.js --no-exit
var Client = require('../lib/client');
describe('Client', function () {
describe('#close', function () {
it('should close gracefully', function (done) {
var client = new Client();
client.on('ready', function () {
client.close(done);
});
});
});
});