1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

chore: remove support for UPPER_CASE commands

This commit is contained in:
Ruben Bridgewater
2017-05-06 01:46:29 +02:00
parent f92bc18c16
commit 19f3d20b47
41 changed files with 136 additions and 137 deletions

View File

@@ -18,7 +18,7 @@ describe("The 'hmget' method", function () {
client.once('error', done);
client.once('ready', function () {
client.flushdb();
client.HMSET(hash, {'0123456789': 'abcdefghij', 'some manner of key': 'a type of value'}, helper.isString('OK', done));
client.hmset(hash, {'0123456789': 'abcdefghij', 'some manner of key': 'a type of value'}, helper.isString('OK', done));
});
});
@@ -32,7 +32,7 @@ describe("The 'hmget' method", function () {
it('allows keys to be specified by passing an array without manipulating the array', function (done) {
var data = ['0123456789', 'some manner of key'];
client.HMGET(hash, data, function (err, reply) {
client.hmget(hash, data, function (err, reply) {
assert.strictEqual(data.length, 2);
assert.strictEqual('abcdefghij', reply[0].toString());
assert.strictEqual('a type of value', reply[1].toString());
@@ -41,7 +41,7 @@ describe("The 'hmget' method", function () {
});
it('allows keys to be specified by passing an array as first argument', function (done) {
client.HMGET([hash, '0123456789', 'some manner of key'], function (err, reply) {
client.hmget([hash, '0123456789', 'some manner of key'], function (err, reply) {
assert.strictEqual('abcdefghij', reply[0].toString());
assert.strictEqual('a type of value', reply[1].toString());
return done(err);
@@ -49,14 +49,14 @@ describe("The 'hmget' method", function () {
});
it('allows a single key to be specified in an array', function (done) {
client.HMGET(hash, ['0123456789'], function (err, reply) {
client.hmget(hash, ['0123456789'], function (err, reply) {
assert.strictEqual('abcdefghij', reply[0].toString());
return done(err);
});
});
it('allows keys to be specified that have not yet been set', function (done) {
client.HMGET(hash, 'missing thing', 'another missing thing', function (err, reply) {
client.hmget(hash, 'missing thing', 'another missing thing', function (err, reply) {
assert.strictEqual(null, reply[0]);
assert.strictEqual(null, reply[1]);
return done(err);