You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
22 lines
625 B
TypeScript
22 lines
625 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './SMISMEMBER';
|
|
|
|
describe('SMISMEMBER', () => {
|
|
testUtils.isVersionGreaterThanHook([6, 2]);
|
|
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key', ['1', '2']),
|
|
['SMISMEMBER', 'key', '1', '2']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.smIsMember', async client => {
|
|
assert.deepEqual(
|
|
await client.smIsMember('key', ['1', '2']),
|
|
[false, false]
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|