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/WATCH.spec.ts
2023-09-18 15:03:07 -04:00

21 lines
427 B
TypeScript

import { strict as assert } from 'node:assert';
import WATCH from './WATCH';
describe('WATCH', () => {
describe('transformArguments', () => {
it('string', () => {
assert.deepEqual(
WATCH.transformArguments('key'),
['WATCH', 'key']
);
});
it('array', () => {
assert.deepEqual(
WATCH.transformArguments(['1', '2']),
['WATCH', '1', '2']
);
});
});
});