From e4b8370c030c4e53f365f50669f90452b82eda73 Mon Sep 17 00:00:00 2001 From: dovi Date: Wed, 3 May 2023 14:46:09 -0400 Subject: [PATCH] fix DECR spec --- packages/client/lib/commands/DECR.spec.ts | 29 +++++++++++++---------- todo.md | 4 ++-- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/packages/client/lib/commands/DECR.spec.ts b/packages/client/lib/commands/DECR.spec.ts index 75e1205fed..aa7f2ad5c0 100644 --- a/packages/client/lib/commands/DECR.spec.ts +++ b/packages/client/lib/commands/DECR.spec.ts @@ -1,19 +1,22 @@ import { strict as assert } from 'assert'; import testUtils, { GLOBAL } from '../test-utils'; -import { transformArguments } from './DECR'; +import DECR from './DECR'; describe('DECR', () => { - it('transformArguments', () => { - assert.deepEqual( - transformArguments('key'), - ['DECR', 'key'] - ); - }); + it('transformArguments', () => { + assert.deepEqual( + DECR.transformArguments('key'), + ['DECR', 'key'] + ); + }); - testUtils.testWithClient('client.decr', async client => { - assert.equal( - await client.decr('key'), - -1 - ); - }, GLOBAL.SERVERS.OPEN); + testUtils.testAll('decr', async client => { + assert.equal( + await client.decr('key'), + -1 + ); + }, { + client: GLOBAL.SERVERS.OPEN, + cluster: GLOBAL.CLUSTERS.OPEN + }); }); diff --git a/todo.md b/todo.md index 949f9b3d6c..402afc073f 100644 --- a/todo.md +++ b/todo.md @@ -11,8 +11,7 @@ # waiting List categoreis -- Generic -- String +- String - Hash - List - Set @@ -29,6 +28,7 @@ - `ZRANK WITHSCORE` - `MIGRATE` - `RESTORE` +- `WAITAOF` # other