1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
Leibale
2023-05-10 14:55:03 +03:00
parent b4196faa41
commit 13f1fa9e58
17 changed files with 119 additions and 99 deletions

View File

@@ -31,9 +31,13 @@ describe('XSETID', () => {
});
testUtils.testAll('xSetId', async client => {
assert.deepEqual(
await client.xSetId('key', '0-0'),
[]
const id = await client.xAdd('key', '*', {
field: 'value'
});
assert.equal(
await client.xSetId('key', id),
'OK'
);
}, {
client: GLOBAL.SERVERS.OPEN,