1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-11 22:42:42 +03:00
Files
node-redis/lib/commands/XGROUP_SETID.spec.ts
2021-07-13 19:35:07 -04:00

24 lines
681 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './XGROUP_SETID';
describe('XGROUP SETID', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 'group', '0'),
['XGROUP', 'SETID', 'key', 'group', '0']
);
});
itWithClient(TestRedisServers.OPEN, 'client.xGroupSetId', async client => {
await client.xGroupCreate('key', 'group', '$', {
MKSTREAM: true
});
assert.equal(
await client.xGroupSetId('key', 'group', '0'),
'OK'
);
});
});