You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
26 lines
721 B
TypeScript
26 lines
721 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './CLIENT_TRACKINGINFO';
|
|
|
|
describe('CLIENT TRACKINGINFO', () => {
|
|
testUtils.isVersionGreaterThanHook([6, 2]);
|
|
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments(),
|
|
['CLIENT', 'TRACKINGINFO']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.clientTrackingInfo', async client => {
|
|
assert.deepEqual(
|
|
await client.clientTrackingInfo(),
|
|
{
|
|
flags: new Set(['off']),
|
|
redirect: -1,
|
|
prefixes: []
|
|
}
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|