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

fix DUMP spec

This commit is contained in:
dovi
2023-05-02 19:50:01 -04:00
parent 6809365e98
commit 80ecd9e06a
2 changed files with 12 additions and 6 deletions

View File

@@ -2,10 +2,13 @@ import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
describe('DUMP', () => {
testUtils.testWithClient('client.dump', async client => {
assert.equal(
await client.dump('key'),
null
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testAll('client.dump', async client => {
assert.equal(
await client.dump('key'),
null
);
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
});

View File

@@ -42,6 +42,7 @@ import CLUSTER_MYID from './CLUSTER_MYID';
import CLUSTER_REPLICATE from './CLUSTER_REPLICATE';
import DECR from './DECR';
import DECRBY from './DECRBY';
import DUMP from './DUMP';
import GET from './GET';
import GETDEL from './GETDEL';
import GETEX from './GETEX';
@@ -269,6 +270,8 @@ export default {
decr: DECR,
DECRBY,
decrBy: DECRBY,
DUMP,
dump: DUMP,
GET,
get: GET,
GETDEL,