From 1cb13f5d78de3cdbe7b4b31508be987b94cc5153 Mon Sep 17 00:00:00 2001 From: Andre Wiggins Date: Mon, 30 Oct 2023 15:22:20 -0700 Subject: [PATCH] Use .to.equalNode in test --- compat/test/browser/hydrate.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/test/browser/hydrate.test.js b/compat/test/browser/hydrate.test.js index e42cdb766f..694def108f 100644 --- a/compat/test/browser/hydrate.test.js +++ b/compat/test/browser/hydrate.test.js @@ -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(, scratch); - expect(document.activeElement).to.equal(input); + expect(document.activeElement).to.equalNode(input); }); it('should call the callback', () => {