1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
Leibale
2023-05-10 12:08:02 +03:00
parent d59254e497
commit b4196faa41
12 changed files with 244 additions and 139 deletions

View File

@@ -115,19 +115,7 @@ describe('ZADD', () => {
);
});
it('with INCR', () => {
assert.deepEqual(
ZADD.transformArguments('key', {
value: '1',
score: 1
}, {
INCR: true
}),
['ZADD', 'key', 'INCR', '1', '1']
);
});
it('with condition, comparison, CH, INCR', () => {
it('with condition, comparison, CH', () => {
assert.deepEqual(
ZADD.transformArguments('key', {
value: '1',
@@ -135,10 +123,9 @@ describe('ZADD', () => {
}, {
condition: 'XX',
comparison: 'LT',
CH: true,
INCR: true
CH: true
}),
['ZADD', 'key', 'XX', 'LT', 'CH', 'INCR', '1', '1']
['ZADD', 'key', 'XX', 'LT', 'CH', '1', '1']
);
});
});