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-07-18 16:32:45 -04:00
parent 8501db0243
commit fdd1978d92
43 changed files with 377 additions and 506 deletions

View File

@@ -20,11 +20,11 @@ describe('JSON.ARRINSERT', () => {
});
testUtils.testWithClient('client.json.arrInsert', async client => {
await client.json.set('key', '$', []);
const [, reply] = await Promise.all([
client.json.set('key', '$', []),
client.json.arrInsert('key', '$', 0, 'json')
]);
assert.deepEqual(
await client.json.arrInsert('key', '$', 0, 'json'),
[1]
);
assert.deepEqual(reply, [1]);
}, GLOBAL.SERVERS.OPEN);
});