1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix a test and add some more

This commit is contained in:
Ruben Bridgewater
2015-09-30 02:04:56 +02:00
parent fba050802b
commit afcd760b18
4 changed files with 110 additions and 9 deletions

View File

@@ -151,18 +151,13 @@ describe("The node_redis client", function () {
});
});
it.skip("misusing the function should eventually throw (no command)", function (done) {
var mochaListener = helper.removeMochaListener();
process.once('uncaughtException', function (err) {
process.on('uncaughtException', mochaListener);
it("misusing the function should eventually throw (no command)", function (done) {
client.send_command(true, 'info', function (err, res) {
assert(/ERR Protocol error/.test(err.message));
assert.equal(err.command, true);
assert.equal(err.code, 'ERR');
done();
});
client.send_command(true, 'info');
});
it("misusing the function should eventually throw (wrong args)", function (done) {