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 OBJKEYS from './OBJKEYS';
|
||||
|
||||
describe('JSON.OBJKEYS', () => {
|
||||
describe('transformArguments', () => {
|
||||
it('without path', () => {
|
||||
it('simple', () => {
|
||||
assert.deepEqual(
|
||||
OBJKEYS.transformArguments('key'),
|
||||
['JSON.OBJKEYS', 'key']
|
||||
@@ -13,7 +13,9 @@ describe('JSON.OBJKEYS', () => {
|
||||
|
||||
it('with path', () => {
|
||||
assert.deepEqual(
|
||||
OBJKEYS.transformArguments('key', '$'),
|
||||
OBJKEYS.transformArguments('key', {
|
||||
path: '$'
|
||||
}),
|
||||
['JSON.OBJKEYS', 'key', '$']
|
||||
);
|
||||
});
|
||||
@@ -21,7 +23,7 @@ describe('JSON.OBJKEYS', () => {
|
||||
|
||||
testUtils.testWithClient('client.json.objKeys', async client => {
|
||||
assert.deepEqual(
|
||||
await client.json.objKeys('key', '$'),
|
||||
await client.json.objKeys('key'),
|
||||
[null]
|
||||
);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
|
Reference in New Issue
Block a user