You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Rename .command_used to .command and add the used command to more errors
This commit is contained in:
@ -94,7 +94,7 @@ describe("The 'select' method", function () {
|
||||
assert.strictEqual(client.selected_db, null, "default db should be null");
|
||||
|
||||
client.on('error', function (err) {
|
||||
assert.strictEqual(err.command_used, 'SELECT');
|
||||
assert.strictEqual(err.command, 'SELECT');
|
||||
assert.equal(err.message, 'ERR invalid DB index');
|
||||
done();
|
||||
});
|
||||
|
Reference in New Issue
Block a user