Skip to content

Commit

Permalink
fix: test on old node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR committed Aug 1, 2017
1 parent 6694c91 commit 1380ad6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/node_redis.spec.js
Expand Up @@ -25,10 +25,12 @@ describe('The node_redis client', function () {
var command = 'really-new.command';
assert.strictEqual(Redis.prototype[command], undefined);
redis.addCommand(command);
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');
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');
}
});
});

Expand Down

0 comments on commit 1380ad6

Please sign in to comment.