You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
24 lines
678 B
TypeScript
24 lines
678 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './XGROUP_SETID';
|
|
|
|
describe('XGROUP SETID', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key', 'group', '0'),
|
|
['XGROUP', 'SETID', 'key', 'group', '0']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.xGroupSetId', async client => {
|
|
await client.xGroupCreate('key', 'group', '$', {
|
|
MKSTREAM: true
|
|
});
|
|
|
|
assert.equal(
|
|
await client.xGroupSetId('key', 'group', '0'),
|
|
'OK'
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|