You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-17 19:41:06 +03:00
add support for all set commands (including sScanIterator)
This commit is contained in:
19
lib/commands/SMEMBERS.spec.ts
Normal file
19
lib/commands/SMEMBERS.spec.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import { TestRedisServers, itWithClient } from '../test-utils';
|
||||
import { transformArguments } from './SMEMBERS';
|
||||
|
||||
describe('SMEMBERS', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('key'),
|
||||
['SMEMBERS', 'key']
|
||||
);
|
||||
});
|
||||
|
||||
itWithClient(TestRedisServers.OPEN, 'client.sMembers', async client => {
|
||||
assert.deepEqual(
|
||||
await client.sMembers('key'),
|
||||
[]
|
||||
);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user