From 76d4c4936e8f2415a1a58120f2f97b6b75f69f69 Mon Sep 17 00:00:00 2001 From: Vladislav Gruchik <4280527+vagruchi@users.noreply.github.com> Date: Tue, 30 Sep 2025 17:18:49 +0200 Subject: [PATCH] chore: fix typo --- __tests__/call.test.ts | 3 ++- src/StreamCall.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/__tests__/call.test.ts b/__tests__/call.test.ts index 4e17a42..5694cf7 100644 --- a/__tests__/call.test.ts +++ b/__tests__/call.test.ts @@ -205,7 +205,8 @@ describe('call API', () => { }); it('generate SRT credentials', () => { - const creds = call.createSRTCredetials('john'); + const call = client.video.call('default', `call${uuidv4()}`); + const creds = call.createSRTCredentials('john'); expect(creds).toBeDefined(); expect(creds.address).toBeDefined(); diff --git a/src/StreamCall.ts b/src/StreamCall.ts index eb80e9a..f09bd4b 100644 --- a/src/StreamCall.ts +++ b/src/StreamCall.ts @@ -46,7 +46,7 @@ export class StreamCall extends CallApi { return response; }; - createSRTCredetials = ( + createSRTCredentials = ( userID: string, ): { address: string;