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
Allow creating public knock rooms (#11481)
* Allow creating public knock rooms Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net> * Apply PR feedback Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net> * Apply PR feedback Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net> --------- Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
This commit is contained in:
@ -89,4 +89,16 @@ describe("<LabelledCheckbox />", () => {
|
||||
expect(checkbox).toBeChecked();
|
||||
expect(checkbox).toBeDisabled();
|
||||
});
|
||||
|
||||
it("should render with a custom class name", () => {
|
||||
const className = "some class name";
|
||||
const props: CompProps = {
|
||||
label: "Hello world",
|
||||
value: false,
|
||||
onChange: jest.fn(),
|
||||
className,
|
||||
};
|
||||
const { container } = render(getComponent(props));
|
||||
expect(container.firstElementChild?.className).toContain(className);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user