You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
some json and search commands
This commit is contained in:
@@ -4,7 +4,7 @@ import OBJLEN from './OBJLEN';
|
||||
|
||||
describe('JSON.OBJLEN', () => {
|
||||
describe('transformArguments', () => {
|
||||
it('without path', () => {
|
||||
it('simple', () => {
|
||||
assert.deepEqual(
|
||||
OBJLEN.transformArguments('key'),
|
||||
['JSON.OBJLEN', 'key']
|
||||
@@ -13,7 +13,9 @@ describe('JSON.OBJLEN', () => {
|
||||
|
||||
it('with path', () => {
|
||||
assert.deepEqual(
|
||||
OBJLEN.transformArguments('key', '$'),
|
||||
OBJLEN.transformArguments('key', {
|
||||
path: '$'
|
||||
}),
|
||||
['JSON.OBJLEN', 'key', '$']
|
||||
);
|
||||
});
|
||||
@@ -21,8 +23,8 @@ describe('JSON.OBJLEN', () => {
|
||||
|
||||
testUtils.testWithClient('client.json.objLen', async client => {
|
||||
assert.equal(
|
||||
await client.json.objLen('key', '$'),
|
||||
[null]
|
||||
await client.json.objLen('key'),
|
||||
null
|
||||
);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
||||
|
Reference in New Issue
Block a user