You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-15 23:55:38 +03:00
fix(ts): xtrim threshold accepts string (#2828)
* fix(ts): xtrim threshold accepts string * test: check MINID with text id
This commit is contained in:
@@ -38,6 +38,13 @@ describe('XTRIM', () => {
|
||||
['XTRIM', 'key', 'MAXLEN', '=', '1', 'LIMIT', '1']
|
||||
);
|
||||
});
|
||||
|
||||
it('with MINID', () => {
|
||||
assert.deepEqual(
|
||||
XTRIM.transformArguments('key', 'MINID', '0-0'),
|
||||
['XTRIM', 'key', 'MINID', '0-0']
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
testUtils.testAll('xTrim', async client => {
|
||||
|
||||
Reference in New Issue
Block a user