From 80ecd9e06a401676b8e4a41d99159cab32857e45 Mon Sep 17 00:00:00 2001 From: dovi Date: Tue, 2 May 2023 19:50:01 -0400 Subject: [PATCH] fix DUMP spec --- packages/client/lib/commands/DUMP.spec.ts | 15 +++++++++------ packages/client/lib/commands/index.ts | 3 +++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/client/lib/commands/DUMP.spec.ts b/packages/client/lib/commands/DUMP.spec.ts index aebbf4f3f7..94cc11ed51 100644 --- a/packages/client/lib/commands/DUMP.spec.ts +++ b/packages/client/lib/commands/DUMP.spec.ts @@ -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 + }); }); diff --git a/packages/client/lib/commands/index.ts b/packages/client/lib/commands/index.ts index c1aa9f1a64..2fad74caef 100644 --- a/packages/client/lib/commands/index.ts +++ b/packages/client/lib/commands/index.ts @@ -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,