Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
myandrienko committed Nov 21, 2024
1 parent fa4cb23 commit f852c78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/__tests__/Call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ describe('muting logic', () => {
.mockImplementation(() => Promise.resolve({ duration: '0ms' }));
});

it('should mute self', () => {
call.muteSelf('audio');
it('should mute self', async () => {
await call.muteSelf('audio');

expect(spy).toHaveBeenCalledWith(userId, 'audio');
});
Expand Down
4 changes: 4 additions & 0 deletions packages/client/src/coordinator/connection/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ export class StreamClient {
return this.connectionIdPromiseSafe?.();
}

get wsPromise() {
return this.wsPromiseSafe?.();
}

_logApiRequest = (
type: string,
url: string,
Expand Down

0 comments on commit f852c78

Please sign in to comment.