Skip to content

Commit

Permalink
capricorn86#308@trivial: Fixes failing unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Oct 18, 2022
1 parent dad18e4 commit 0e5862e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/happy-dom/test/named-node-map/NamedNodeMap.test.ts
Expand Up @@ -102,7 +102,7 @@ describe('NamedNodeMap', () => {

it('Replaces an attribute when existing.', () => {
element.setAttribute('key', 'value1');
const attr = attributes.getNamedItem('key');
const attr = document.createAttributeNS('namespace', 'key');
attr.value = 'value2';

const replaced = attributes.setNamedItem(attr);
Expand All @@ -127,7 +127,7 @@ describe('NamedNodeMap', () => {

it('Replaces an attribute when existing.', () => {
element.setAttributeNS('namespace', 'key', 'value1');
const attr = attributes.getNamedItemNS('namespace', 'key');
const attr = document.createAttributeNS('namespace', 'key');
attr.value = 'value2';

const replaced = attributes.setNamedItemNS(attr);
Expand Down

0 comments on commit 0e5862e

Please sign in to comment.