You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix returnBuffers
, add some tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import testUtils, { GLOBAL } from '../../test-utils';
|
||||
import { transformArguments } from './SCANDUMP';
|
||||
|
||||
describe('CF SCANDUMP', () => {
|
||||
@@ -8,4 +9,15 @@ describe('CF SCANDUMP', () => {
|
||||
['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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user