Skip to content

Commit

Permalink
fixed typo in assert msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Nov 1, 2023
1 parent 4f91f78 commit 1e2b450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/interface/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ assert(node.toString(), '<div><p></p></div>', 'before after not affected');
node.firstChild.textContent = '<test>';
assert(node.toString(), '<div><p>&lt;test&gt;</p></div>', 'before after not affected');
node.firstChild.textContent = '';
assert(node.firstChild.childNodes.length, 0, 'there should be no leftovers are clearing content with textContent=""')
assert(node.firstChild.childNodes.length, 0, 'there should be no leftovers when clearing content with textContent=""')
assert(node.firstChild.firstChild, null, 'textContent empty string clears children')
assert(node.firstChild.textContent, '', 'textContent was set empty string')
assert(node.toString(), '<div><p></p></div>', 'before after not affected');
Expand All @@ -26,7 +26,7 @@ node.firstChild.textContent = null;
assert(node.firstChild.firstChild, null, 'textContent null clears all children and keeps childNodes empty')
assert(node.toString(), '<div><p></p></div>', 'null clears all children but does not set node');
node.firstChild.textContent = '';
assert(node.firstChild.childNodes.length, 0, 'there should be no leftovers are clearing content with textContent=""')
assert(node.firstChild.childNodes.length, 0, 'there should be no leftovers when clearing content with textContent=""')
assert(node.firstChild.firstChild, null, 'textContent empty string clears children')
assert(node.firstChild.textContent, '', 'textContent was set empty string')
assert(node.toString(), '<div><p></p></div>', 'empty text node as text');
Expand Down

0 comments on commit 1e2b450

Please sign in to comment.