1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
This commit is contained in:
Leibale
2023-07-18 16:32:45 -04:00
parent 8501db0243
commit fdd1978d92
43 changed files with 377 additions and 506 deletions

View File

@ -4,17 +4,19 @@ import CLEAR from './CLEAR';
describe('JSON.CLEAR', () => {
describe('transformArguments', () => {
it('key', () => {
it('simple', () => {
assert.deepEqual(
CLEAR.transformArguments('key'),
['JSON.CLEAR', 'key']
);
});
it('key, path', () => {
it('with path', () => {
assert.deepEqual(
CLEAR.transformArguments('key', '$.path'),
['JSON.CLEAR', 'key', '$.path']
CLEAR.transformArguments('key', {
path: '$'
}),
['JSON.CLEAR', 'key', '$']
);
});
});