Skip to content

Commit

Permalink
Test: update test cases for collapseWhitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 21, 2020
1 parent efd0e95 commit 8916cde
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/modules/collapseWhitespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ describe('collapseWhitespace', () => {
</span>
</span>
</div>
<div>
lorem
<span>
opren
</span>
</div>
`;

const documentationHtml = `<div>
Expand Down Expand Up @@ -77,7 +83,7 @@ describe('collapseWhitespace', () => {
it('should collapse whitespaces inside text node', () => {
return init(
spaceInsideTextNodeHtml,
'<div><span>lorem<span>iorem</span></span></div>',
'<div><span>lorem<span>iorem</span></span></div><div>lorem<span>opren</span></div>',
options
);
});
Expand Down Expand Up @@ -125,7 +131,7 @@ describe('collapseWhitespace', () => {
it('should collapse whitespaces inside text node', () => {
return init(
spaceInsideTextNodeHtml,
'<div><span> lorem <span> iorem </span> </span></div>',
'<div><span> lorem <span> iorem </span> </span></div><div>lorem <span> opren </span></div>',
options
);
});
Expand Down Expand Up @@ -191,7 +197,7 @@ describe('collapseWhitespace', () => {
it('should collapse whitespaces inside text node', () => {
return init(
spaceInsideTextNodeHtml,
'<div> <span> lorem <span> iorem </span> </span> </div>',
'<div> <span> lorem <span> iorem </span> </span> </div><div> lorem <span> opren </span> </div>',
options
);
});
Expand Down

0 comments on commit 8916cde

Please sign in to comment.