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