You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
* Support OBJECT [...] commands * move commands to cluster/commands.ts Co-authored-by: leibale <leibale1998@gmail.com>
20 lines
554 B
TypeScript
20 lines
554 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './OBJECT_IDLETIME';
|
|
|
|
describe('OBJECT IDLETIME', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key'),
|
|
['OBJECT', 'IDLETIME', 'key']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.objectIdleTime', async client => {
|
|
assert.equal(
|
|
await client.objectIdleTime('key'),
|
|
null
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|