mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
fix type
This commit is contained in:
@@ -17,7 +17,7 @@ test("that nothing is rendered when the modal is closed", () => {
|
|||||||
<p>This is the content.</p>
|
<p>This is the content.</p>
|
||||||
</Modal>,
|
</Modal>,
|
||||||
);
|
);
|
||||||
expect(queryByRole("dialog")).to.be.null();
|
expect(queryByRole("dialog")).toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("the content is rendered when the modal is open", () => {
|
test("the content is rendered when the modal is open", () => {
|
||||||
@@ -42,7 +42,7 @@ test("the modal can be closed by clicking the close button", () => {
|
|||||||
act(() => {
|
act(() => {
|
||||||
getByLabelText("action.close").click();
|
getByLabelText("action.close").click();
|
||||||
});
|
});
|
||||||
expect(queryByRole("dialog")).to.be.null();
|
expect(queryByRole("dialog")).toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
const originalMatchMedia = window.matchMedia;
|
const originalMatchMedia = window.matchMedia;
|
||||||
|
|||||||
Reference in New Issue
Block a user