You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix: test on old node versions
This commit is contained in:
@@ -25,10 +25,12 @@ describe('The node_redis client', function () {
|
||||
var command = 'really-new.command';
|
||||
assert.strictEqual(Redis.prototype[command], undefined);
|
||||
redis.addCommand(command);
|
||||
if (Redis.prototype[command].name !== '') {
|
||||
assert.strictEqual(Redis.prototype[command].name, 'really_new_command');
|
||||
assert.strictEqual(Redis.prototype[command.toUpperCase()].name, 'really_new_command');
|
||||
assert.strictEqual(Redis.prototype.really_new_command.name, 'really_new_command');
|
||||
assert.strictEqual(Redis.prototype.REALLY_NEW_COMMAND.name, 'really_new_command');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user