1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/WATCH.spec.ts

21 lines
503 B
TypeScript

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