From 6449832e7eade26f88d1fb8d02970a204c814e89 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Fri, 29 Aug 2025 06:57:32 -0700 Subject: [PATCH] rm redundant and long-disabled test for toEqual with DOM nodes --- spec/html/MatchersHtmlSpec.js | 40 ----------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 spec/html/MatchersHtmlSpec.js diff --git a/spec/html/MatchersHtmlSpec.js b/spec/html/MatchersHtmlSpec.js deleted file mode 100644 index 1067a8fb..00000000 --- a/spec/html/MatchersHtmlSpec.js +++ /dev/null @@ -1,40 +0,0 @@ -describe('MatchersSpec - HTML Dependent', function() { - let env, spec; - - beforeEach(function() { - env = new jasmineUnderTest.Env(); - - env.describe('suite', function() { - spec = env.it('spec', function() {}); - }); - spyOn(spec, 'addExpectationResult'); - - addMatchers({ - toPass: function() { - return lastResult().passed; - }, - toFail: function() { - return !lastResult().passed; - } - }); - }); - - afterEach(function() { - env.cleanup_(); - }); - - function match(value) { - return spec.expect(value); - } - - function lastResult() { - return spec.addExpectationResult.mostRecentCall.args[1]; - } - - xit('toEqual with DOM nodes', function() { - const nodeA = document.createElement('div'); - const nodeB = document.createElement('div'); - expect(match(nodeA).toEqual(nodeA)).toPass(); - expect(match(nodeA).toEqual(nodeB)).toFail(); - }); -});