Pause voice broadcast on calls (#9623)

This commit is contained in:
Michael Weimann 2022-11-28 12:43:59 +01:00 committed by GitHub
parent ad190b1dcc
commit e38c59c535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -89,7 +89,7 @@ describe("StopGapWidget", () => {
content: {},
});
voiceBroadcastRecording = new VoiceBroadcastRecording(voiceBroadcastInfoEvent, client);
jest.spyOn(voiceBroadcastRecording, "stop");
jest.spyOn(voiceBroadcastRecording, "pause");
jest.spyOn(VoiceBroadcastRecordingsStore.instance(), "getCurrent").mockReturnValue(voiceBroadcastRecording);
});
@ -105,8 +105,8 @@ describe("StopGapWidget", () => {
);
});
it("should stop the current voice broadcast recording", () => {
expect(voiceBroadcastRecording.stop).toHaveBeenCalled();
it("should pause the current voice broadcast recording", () => {
expect(voiceBroadcastRecording.pause).toHaveBeenCalled();
});
});
});