You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
bloom module
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import testUtils, { GLOBAL } from '../../test-utils';
|
||||
import { transformArguments } from './INITBYDIM';
|
||||
import INITBYDIM from './INITBYDIM';
|
||||
|
||||
describe('CMS INITBYDIM', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('key', 1000, 5),
|
||||
['CMS.INITBYDIM', 'key', '1000', '5']
|
||||
);
|
||||
});
|
||||
describe('CMS.INITBYDIM', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
INITBYDIM.transformArguments('key', 1000, 5),
|
||||
['CMS.INITBYDIM', 'key', '1000', '5']
|
||||
);
|
||||
});
|
||||
|
||||
testUtils.testWithClient('client.cms.initByDim', async client => {
|
||||
assert.equal(
|
||||
await client.cms.initByDim('key', 1000, 5),
|
||||
'OK'
|
||||
);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
testUtils.testWithClient('client.cms.initByDim', async client => {
|
||||
assert.equal(
|
||||
await client.cms.initByDim('key', 1000, 5),
|
||||
'OK'
|
||||
);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
||||
|
Reference in New Issue
Block a user