You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
* The Latency Doctor Command has been added to the project * Update LATENCY_DOCTOR.ts * Update LATENCY_DOCTOR.spec.ts * Update LATENCY_DOCTOR.spec.ts Co-authored-by: QuentinRK <q.rankin@outlook.com> Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
20 lines
541 B
TypeScript
20 lines
541 B
TypeScript
import {strict as assert} from 'assert';
|
|
import testUtils, {GLOBAL} from '../test-utils';
|
|
import { transformArguments } from './LATENCY_DOCTOR';
|
|
|
|
describe('LATENCY DOCTOR', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments(),
|
|
['LATENCY', 'DOCTOR']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.latencyDoctor', async client => {
|
|
assert.equal(
|
|
typeof (await client.latencyDoctor()),
|
|
'string'
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|