-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
6b8a40a
commit 6ca45f6
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export function transformArguments(): Array<string> { | ||
return ['LATENCY', 'DOCTOR']; | ||
} | ||
|
||
export declare function transformReply(): string; |