You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Remove snack_case and always use camelCase
This commit is contained in:
committed by
Ruben Bridgewater
parent
a86c998a64
commit
28afc33c9a
@@ -41,24 +41,24 @@ describe("The 'info' method", function () {
|
||||
client.set('foo', 'bar');
|
||||
client.info('keyspace');
|
||||
client.select(2, function () {
|
||||
assert.strictEqual(Object.keys(client.server_info).length, 2, 'Key length should be three');
|
||||
assert.strictEqual(typeof client.server_info.db0, 'object', 'db0 keyspace should be an object');
|
||||
assert.strictEqual(Object.keys(client.serverInfo).length, 2, 'Key length should be three');
|
||||
assert.strictEqual(typeof client.serverInfo.db0, 'object', 'db0 keyspace should be an object');
|
||||
});
|
||||
client.info(['keyspace']);
|
||||
client.set('foo', 'bar');
|
||||
client.info('all', function (err, res) {
|
||||
assert(Object.keys(client.server_info).length > 3, 'Key length should be way above three');
|
||||
assert.strictEqual(typeof client.server_info.redis_version, 'string');
|
||||
assert.strictEqual(typeof client.server_info.db2, 'object');
|
||||
assert(Object.keys(client.serverInfo).length > 3, 'Key length should be way above three');
|
||||
assert.strictEqual(typeof client.serverInfo.redis_version, 'string');
|
||||
assert.strictEqual(typeof client.serverInfo.db2, 'object');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('check redis v.2.4 support', function (done) {
|
||||
var end = helper.callFuncAfter(done, 2);
|
||||
client.internal_send_command = function (command_obj) {
|
||||
assert.strictEqual(command_obj.args.length, 0);
|
||||
assert.strictEqual(command_obj.command, 'info');
|
||||
client.internalSendCommand = function (commandObj) {
|
||||
assert.strictEqual(commandObj.args.length, 0);
|
||||
assert.strictEqual(commandObj.command, 'info');
|
||||
end();
|
||||
};
|
||||
client.info();
|
||||
|
Reference in New Issue
Block a user