1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00

bloom module

This commit is contained in:
Leibale
2023-07-05 15:22:33 -04:00
parent de7e2b85c4
commit 2dd1f2ca38
114 changed files with 1993 additions and 2071 deletions

View File

@@ -1,21 +1,21 @@
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../../test-utils';
import { transformArguments, transformReply } from './MIN';
import MIN from './MIN';
describe('TDIGEST.MIN', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key'),
['TDIGEST.MIN', 'key']
);
});
it('transformArguments', () => {
assert.deepEqual(
MIN.transformArguments('key'),
['TDIGEST.MIN', 'key']
);
});
testUtils.testWithClient('client.tDigest.min', async client => {
const [ , reply ] = await Promise.all([
client.tDigest.create('key'),
client.tDigest.min('key')
]);
testUtils.testWithClient('client.tDigest.min', async client => {
const [, reply] = await Promise.all([
client.tDigest.create('key'),
client.tDigest.min('key')
]);
assert.equal(reply, NaN);
}, GLOBAL.SERVERS.OPEN);
assert.equal(reply, NaN);
}, GLOBAL.SERVERS.OPEN);
});