From 41b00bd518e5c96a3f8c2bbca6539c9933886d13 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Thu, 7 Nov 2024 15:01:17 +0000 Subject: [PATCH] fix type --- src/Modal.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;