fix(companion): validate runtime and heartbeat loop options
This commit is contained in:
@@ -96,6 +96,15 @@ afterAll(async () => {
|
||||
});
|
||||
|
||||
describe('CompanionRuntimeClient', () => {
|
||||
it('validates requestTimeoutMs option', () => {
|
||||
expect(() => {
|
||||
new CompanionRuntimeClient({
|
||||
url: 'ws://127.0.0.1:1',
|
||||
requestTimeoutMs: 0,
|
||||
});
|
||||
}).toThrow('requestTimeoutMs must be a positive number');
|
||||
});
|
||||
|
||||
it('dispatches gateway events to subscribed handlers and supports unsubscribe', () => {
|
||||
const client = new CompanionRuntimeClient({
|
||||
url: 'ws://127.0.0.1:1',
|
||||
|
||||
Reference in New Issue
Block a user