Skip to content

Commit

Permalink
chore: added stateChanged to mock voip client
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Oct 10, 2024
1 parent 18d95ff commit e09b3f8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const MockVoipClient = class extends Emitter {

setSessionType(type: VoipSession['type']) {
this._sessionType = type;
setTimeout(() => this.emit('stateChanged'), 0);
}

getSession = () =>
Expand Down Expand Up @@ -50,7 +51,7 @@ const queryClient = new QueryClient({
logger: {
log: console.log,
warn: console.warn,
error: () => undefined,
error: console.error,
},
});

Expand Down

0 comments on commit e09b3f8

Please sign in to comment.