You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
24 lines
659 B
TypeScript
24 lines
659 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../../test-utils';
|
|
import { transformArguments } from './SCANDUMP';
|
|
|
|
describe('CF SCANDUMP', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key', 0),
|
|
['CF.SCANDUMP', 'key', '0']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.cf.scanDump', async client => {
|
|
await client.cf.reserve('key', 4);
|
|
assert.deepEqual(
|
|
await client.cf.scanDump('key', 0),
|
|
{
|
|
iterator: 0,
|
|
chunk: null
|
|
}
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|