Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: replace depricated 'toBeEmpty' method with 'toBeEmptyDOMElement' #1453

Closed

Conversation

rickstaa
Copy link
Collaborator

@rickstaa rickstaa commented Nov 9, 2021

This pull request removes the following deprecation warning:

 console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      33 |       queryByTestId(document.body, "message").children[0],
      34 |     ).toHaveTextContent(/Something went wrong/gim);
    > 35 |     expect(queryByTestId(document.body, "message").children[1]).toBeEmpty(2);
         |                                                                 ^
      36 |
      37 |     // Secondary message
      38 |     document.body.innerHTML = renderError(

@vercel
Copy link

vercel bot commented Nov 9, 2021

@rickstaa is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@Morphclue
Copy link
Contributor

This seems to be a duplicate of #1205.

@rickstaa
Copy link
Collaborator Author

@Morphclue Thanks for letting me know I did not see that pull request.

@rickstaa rickstaa closed this Nov 17, 2021
@rickstaa rickstaa deleted the remove_depricated_toBeEmpty_warn branch October 2, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants