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