You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
RedisJSON
This commit is contained in:
@@ -11,11 +11,11 @@ describe('JSON.NUMINCRBY', () => {
|
||||
});
|
||||
|
||||
testUtils.testWithClient('client.json.numIncrBy', async client => {
|
||||
await client.json.set('key', '$', 0);
|
||||
const [, reply] = await Promise.all([
|
||||
client.json.set('key', '$', 0),
|
||||
client.json.numIncrBy('key', '$', 1)
|
||||
]);
|
||||
|
||||
assert.deepEqual(
|
||||
await client.json.numIncrBy('key', '$', 1),
|
||||
[1]
|
||||
);
|
||||
assert.deepEqual(reply, [1]);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
||||
|
Reference in New Issue
Block a user