1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-03 04:01:40 +03:00
Files
node-redis/packages/client/lib/commands/LATENCY_DOCTOR.spec.ts
Quentin Rankin 6ca45f674d support command LATENCY DOCTOR (#2053)
* 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>
2022-03-27 13:29:10 -04:00

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);
});