1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/packages/client/lib/commands/CLUSTER_RESET.spec.ts
Leibale 4894c26458 wip
2023-06-20 20:04:05 -04:00

23 lines
498 B
TypeScript

import { strict as assert } from 'assert';
import CLUSTER_RESET from './CLUSTER_RESET';
describe('CLUSTER RESET', () => {
describe('transformArguments', () => {
it('simple', () => {
assert.deepEqual(
CLUSTER_RESET.transformArguments(),
['CLUSTER', 'RESET']
);
});
it('with mode', () => {
assert.deepEqual(
CLUSTER_RESET.transformArguments({
mode: 'HARD'
}),
['CLUSTER', 'RESET', 'HARD']
);
});
});
});