You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +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_REFCOUNT';
|
|
|
|
describe('OBJECT REFCOUNT', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key'),
|
|
['OBJECT', 'REFCOUNT', 'key']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.objectRefCount', async client => {
|
|
assert.equal(
|
|
await client.objectRefCount('key'),
|
|
null
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|