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 DUMP spec
This commit is contained in:
@@ -2,10 +2,13 @@ import { strict as assert } from 'assert';
|
|||||||
import testUtils, { GLOBAL } from '../test-utils';
|
import testUtils, { GLOBAL } from '../test-utils';
|
||||||
|
|
||||||
describe('DUMP', () => {
|
describe('DUMP', () => {
|
||||||
testUtils.testWithClient('client.dump', async client => {
|
testUtils.testAll('client.dump', async client => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await client.dump('key'),
|
await client.dump('key'),
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
}, GLOBAL.SERVERS.OPEN);
|
}, {
|
||||||
|
client: GLOBAL.SERVERS.OPEN,
|
||||||
|
cluster: GLOBAL.CLUSTERS.OPEN
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@@ -42,6 +42,7 @@ import CLUSTER_MYID from './CLUSTER_MYID';
|
|||||||
import CLUSTER_REPLICATE from './CLUSTER_REPLICATE';
|
import CLUSTER_REPLICATE from './CLUSTER_REPLICATE';
|
||||||
import DECR from './DECR';
|
import DECR from './DECR';
|
||||||
import DECRBY from './DECRBY';
|
import DECRBY from './DECRBY';
|
||||||
|
import DUMP from './DUMP';
|
||||||
import GET from './GET';
|
import GET from './GET';
|
||||||
import GETDEL from './GETDEL';
|
import GETDEL from './GETDEL';
|
||||||
import GETEX from './GETEX';
|
import GETEX from './GETEX';
|
||||||
@@ -269,6 +270,8 @@ export default {
|
|||||||
decr: DECR,
|
decr: DECR,
|
||||||
DECRBY,
|
DECRBY,
|
||||||
decrBy: DECRBY,
|
decrBy: DECRBY,
|
||||||
|
DUMP,
|
||||||
|
dump: DUMP,
|
||||||
GET,
|
GET,
|
||||||
get: GET,
|
get: GET,
|
||||||
GETDEL,
|
GETDEL,
|
||||||
|
Reference in New Issue
Block a user