1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Add some more tests

This commit is contained in:
Ruben Bridgewater
2015-09-19 18:01:22 +02:00
parent 40c037eaf4
commit 2293f7ff85
4 changed files with 5 additions and 2 deletions

View File

@@ -263,6 +263,7 @@ describe("The 'multi' method", function () {
it('reports multiple exceptions when they occur (while EXEC is running)', function (done) {
client.multi().config("bar").debug("foo").exec(function (err, reply) {
assert.strictEqual(reply.length, 2);
assert.equal(reply[0].code, 'ERR');
assert(/^ERR/.test(reply[0].message), "Error message should begin with ERR");
assert(/^ERR/.test(reply[1].message), "Error message should begin with ERR");
return done();