You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Add ESLint Jest (#10261)
This commit is contained in:
@ -269,7 +269,7 @@ describe("VoiceBroadcastRecording", () => {
|
||||
it("should raise an error when creating a broadcast", () => {
|
||||
expect(() => {
|
||||
setUpVoiceBroadcastRecording();
|
||||
}).toThrowError("Cannot create broadcast for info event without Id.");
|
||||
}).toThrow("Cannot create broadcast for info event without Id.");
|
||||
});
|
||||
});
|
||||
|
||||
@ -285,7 +285,7 @@ describe("VoiceBroadcastRecording", () => {
|
||||
it("should raise an error when creating a broadcast", () => {
|
||||
expect(() => {
|
||||
setUpVoiceBroadcastRecording();
|
||||
}).toThrowError(`Cannot create broadcast for unknown room (info event ${infoEvent.getId()})`);
|
||||
}).toThrow(`Cannot create broadcast for unknown room (info event ${infoEvent.getId()})`);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -74,7 +74,7 @@ describe("VoiceBroadcastRecordingsStore", () => {
|
||||
infoEvent.event.event_id = undefined;
|
||||
expect(() => {
|
||||
recordings.setCurrent(recording);
|
||||
}).toThrowError("Got broadcast info event without Id");
|
||||
}).toThrow("Got broadcast info event without Id");
|
||||
});
|
||||
|
||||
describe("when setting a current Voice Broadcast recording", () => {
|
||||
|
@ -67,11 +67,7 @@ describe("setUpVoiceBroadcastPreRecording", () => {
|
||||
|
||||
beforeEach(() => {
|
||||
client = stubClient();
|
||||
|
||||
const clientUserId = client.getUserId();
|
||||
if (!clientUserId) fail("empty userId");
|
||||
userId = clientUserId;
|
||||
|
||||
userId = client.getSafeUserId();
|
||||
room = new Room(roomId, client, userId);
|
||||
infoEvent = mkVoiceBroadcastInfoStateEvent(
|
||||
roomId,
|
||||
|
Reference in New Issue
Block a user