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;