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

Bug: Assertions on HTMLElements make earl hang #294

Open
dhardtke opened this issue Jul 17, 2023 · 0 comments
Open

Bug: Assertions on HTMLElements make earl hang #294

dhardtke opened this issue Jul 17, 2023 · 0 comments

Comments

@dhardtke
Copy link
Contributor

We are using earl as assertion library for our Angular frontend.

If we write an assertion like this:

const $searchBar = document.getElementById('searchBar');
expect($searchBar).toBeTruthy();

then earl hangs because formatting ("formatCompact") tries to stringify this circular structure.

Can we add an extra condition to make earl serialize HTMLElements differently?

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

No branches or pull requests

1 participant