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

isEqualNode is not a function #1263

Closed
aralroca opened this issue Feb 18, 2024 · 0 comments · Fixed by #1264
Closed

isEqualNode is not a function #1263

aralroca opened this issue Feb 18, 2024 · 0 comments · Fixed by #1264
Labels
bug Something isn't working

Comments

@aralroca
Copy link
Contributor

To reproduce it, create this test:

it('should fail', () => {
  const div = document.createElement('div');
  const div2 = document.createElement('div');

  expect(div.isEqualNode(div2)).toBeTrue();
})

Throws this error:

TypeError: div.isEqualNode is not a function. (In 'div.isEqualNode(div2)', 'div.isEqualNode' is undefined)

However, if you execute this same lines in DevTools:

Screenshot 2024-02-18 at 09 40 39
@aralroca aralroca added the bug Something isn't working label Feb 18, 2024
capricorn86 added a commit that referenced this issue Feb 25, 2024
feat: [#1263] Add isEqualNode method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant