1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

RedisJSON

This commit is contained in:
Leibale
2023-09-05 18:19:31 -04:00
parent 5bab7fa6fd
commit c12dc79950
36 changed files with 271 additions and 308 deletions

View File

@@ -1,19 +1,19 @@
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './MGET';
import MGET from './MGET';
describe('MGET', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments(['1', '2'], '$'),
['JSON.MGET', '1', '2', '$']
);
});
it('transformArguments', () => {
assert.deepEqual(
MGET.transformArguments(['1', '2'], '$'),
['JSON.MGET', '1', '2', '$']
);
});
testUtils.testWithClient('client.json.mGet', async client => {
assert.deepEqual(
await client.json.mGet(['1', '2'], '$'),
[null, null]
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testWithClient('client.json.mGet', async client => {
assert.deepEqual(
await client.json.mGet(['1', '2'], '$'),
[null, null]
);
}, GLOBAL.SERVERS.OPEN);
});