mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-21 00:28:08 +08:00
fix type
This commit is contained in:
parent
2e03e9584a
commit
41b00bd518
@ -17,7 +17,7 @@ test("that nothing is rendered when the modal is closed", () => {
|
||||
<p>This is the content.</p>
|
||||
</Modal>,
|
||||
);
|
||||
expect(queryByRole("dialog")).to.be.null();
|
||||
expect(queryByRole("dialog")).toBeNull();
|
||||
});
|
||||
|
||||
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(() => {
|
||||
getByLabelText("action.close").click();
|
||||
});
|
||||
expect(queryByRole("dialog")).to.be.null();
|
||||
expect(queryByRole("dialog")).toBeNull();
|
||||
});
|
||||
|
||||
const originalMatchMedia = window.matchMedia;
|
||||
|
Loading…
Reference in New Issue
Block a user