Debian Codegraph @

packages/bloom/lib/commands/count-min-sketch/INITBYDIM.spec.ts

raw
1 import { strict as assert } from 'assert';
2 import testUtils, { GLOBAL } from '../../test-utils';
3 import { transformArguments } from './INITBYDIM';
4
5 describe('CMS INITBYDIM', () => {
6 it('transformArguments', () => {
7 assert.deepEqual(
8 transformArguments('key', 1000, 5),
9 ['CMS.INITBYDIM', 'key', '1000', '5']
10 );
11 });
12
13 testUtils.testWithClient('client.cms.initByDim', async client => {
14 assert.equal(
15 await client.cms.initByDim('key', 1000, 5),
16 'OK'
17 );
18 }, GLOBAL.SERVERS.OPEN);
19 });