Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion __tests__/call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/StreamCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
return response;
};

createSRTCredetials = (
createSRTCredentials = (
userID: string,
): {
address: string;
} => {
if (!this.data) {
throw new Error(

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (24)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (24)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (24)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (24)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24

Check failure on line 55 in src/StreamCall.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/call.test.ts > call API > generate SRT credentials

Error: Object is not initialized, call get() or getOrCreate() first ❯ StreamCall.createSRTCredentials src/StreamCall.ts:55:13 ❯ __tests__/call.test.ts:209:24
'Object is not initialized, call get() or getOrCreate() first',
);
}
Expand Down
Loading