Skip to content

Commit

Permalink
Use .to.equalNode in test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Nov 1, 2023
1 parent 9450a29 commit 1cb13f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compat/test/browser/hydrate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ describe('compat hydrate', () => {
const input = document.createElement('input');
scratch.appendChild(input);
input.focus();
expect(document.activeElement).to.equal(input);
expect(document.activeElement).to.equalNode(input);

hydrate(<input />, scratch);
expect(document.activeElement).to.equal(input);
expect(document.activeElement).to.equalNode(input);
});

it('should call the callback', () => {
Expand Down

0 comments on commit 1cb13f5

Please sign in to comment.