1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/client/lib/commands/CLUSTER_DELSLOTS.spec.ts
Leibale b46f08228c wip
2023-06-21 19:09:45 -04:00

21 lines
498 B
TypeScript

import { strict as assert } from 'assert';
import CLUSTER_DELSLOTS from './CLUSTER_DELSLOTS';
describe('CLUSTER DELSLOTS', () => {
describe('transformArguments', () => {
it('single', () => {
assert.deepEqual(
CLUSTER_DELSLOTS.transformArguments(0),
['CLUSTER', 'DELSLOTS', '0']
);
});
it('multiple', () => {
assert.deepEqual(
CLUSTER_DELSLOTS.transformArguments([0, 1]),
['CLUSTER', 'DELSLOTS', '0', '1']
);
});
});
});