Conform more of the codebase to strict typescript (#10841)
This commit is contained in:
parent
af78a5a2f5
commit
277a3c0146
12 changed files with 89 additions and 60 deletions
|
@ -151,7 +151,9 @@ describe("<EditMessageComposer/>", () => {
|
|||
it("should throw when room for message is not found", () => {
|
||||
mockClient.getRoom.mockReturnValue(null);
|
||||
const editState = new EditorStateTransfer(editedEvent);
|
||||
expect(() => getComponent(editState)).toThrow("Cannot find room for event !abc:test");
|
||||
expect(() => getComponent(editState, { ...defaultRoomContext, room: undefined })).toThrow(
|
||||
"Cannot render without room",
|
||||
);
|
||||
});
|
||||
|
||||
describe("createEditContent", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue