diff --git a/src/Modal.test.tsx b/src/Modal.test.tsx index 3b894bde..5c1182e5 100644 --- a/src/Modal.test.tsx +++ b/src/Modal.test.tsx @@ -17,7 +17,7 @@ test("that nothing is rendered when the modal is closed", () => {
This is the content.
, ); - 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;