1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/commands/PFCOUNT.spec.ts
2021-06-10 12:43:28 -04:00

29 lines
748 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './PFCOUNT';
describe('PFCOUNT', () => {
describe('transformArguments', () => {
it('string', () => {
assert.deepEqual(
transformArguments('key'),
['PFCOUNT', 'key']
);
});
it('array', () => {
assert.deepEqual(
transformArguments(['1', '2']),
['PFCOUNT', '1', '2']
);
});
});
itWithClient(TestRedisServers.OPEN, 'client.pfCount', async client => {
assert.equal(
await client.pfCount('key'),
0
);
});
});