From 35eb1e505da72fcc3aa56889d54e882c97dba14a Mon Sep 17 00:00:00 2001 From: rickstaa Date: Tue, 9 Nov 2021 10:13:17 +0100 Subject: [PATCH] test: replace depricated 'toBeEmpty' method with 'toBeEmptyDOMElement' --- tests/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.test.js b/tests/utils.test.js index 4fdd6a8e8b12b..75b9c90702f48 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -32,7 +32,7 @@ describe("Test utils.js", () => { expect( queryByTestId(document.body, "message").children[0], ).toHaveTextContent(/Something went wrong/gim); - expect(queryByTestId(document.body, "message").children[1]).toBeEmpty(2); + expect(queryByTestId(document.body, "message").children[1]).toBeEmptyDOMElement(2); // Secondary message document.body.innerHTML = renderError(