Skip to content

Commit f365285

Browse files
committed
tweak the tests
1 parent 619abb5 commit f365285

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/diff.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -510,17 +510,6 @@ test.each<[string, Node, Node, string, Options | undefined]>([
510510
'<p>123</p><p class="vdd-removed">456</p><p>789</p>',
511511
undefined,
512512
],
513-
[
514-
'table - identical (but with newline breaks)',
515-
htmlToFragment(
516-
'<table>\n<thead>\n<tr><th>Environment variable</th>\n<th>Zope option</th>\n<th>Default value</th>\n</tr>\n</thead>\n<tbody>\n<tr><td>DEBUG_MODE</td>\n<td>debug-mode</td>\n<td>off</td>\n</tr>\n</tbody>\n</table>',
517-
),
518-
htmlToFragment(
519-
'<table>\n<thead>\n<tr><th>Environment variable</th>\n<th>Zope option</th>\n<th>Default value</th>\n</tr>\n</thead>\n<tbody>\n<tr><td>DEBUG_MODE</td>\n<td>debug-mode</td>\n<td>off</td>\n</tr>\n</tbody>\n</table>',
520-
),
521-
'<table>\n<thead>\n<tr><th>Environment variable</th>\n<th>Zope option</th>\n<th>Default value</th>\n</tr>\n</thead>\n<tbody>\n<tr><td>DEBUG_MODE</td>\n<td>debug-mode</td>\n<td>off</td>\n</tr>\n</tbody>\n</table>',
522-
undefined,
523-
],
524513
[
525514
'table - added',
526515
htmlToFragment('<table><tbody><tr><td>one</td></tr></tbody></table>'),
@@ -660,6 +649,17 @@ test.each<[string, Node, Node, string, Options | undefined]>([
660649
'<table class="vdd-removed"><tbody><tr><td colspan="2"></td></tr></tbody></table><table class="vdd-added"><tbody><tr><td>one</td></tr></tbody></table>',
661650
undefined,
662651
],
652+
[
653+
'table - valid but with newline breaks',
654+
htmlToFragment(
655+
'<table>\n<thead>\n<tr><th>one</th>\n<th>two</th>\n<th>three</th>\n</tr>\n</thead>\n<tbody>\n<tr><td>1</td>\n<td>2</td>\n<td>3</td>\n</tr>\n</tbody>\n</table>',
656+
),
657+
htmlToFragment(
658+
'<table>\n<thead>\n<tr><th>one</th>\n<th>two</th>\n<th>three</th>\n</tr>\n</thead>\n<tbody>\n<tr><td>1</td>\n<td>2</td>\n<td>3</td>\n</tr>\n</tbody>\n</table>',
659+
),
660+
'<table>\n<thead>\n<tr><th>one</th>\n<th>two</th>\n<th>three</th>\n</tr>\n</thead>\n<tbody>\n<tr><td>1</td>\n<td>2</td>\n<td>3</td>\n</tr>\n</tbody>\n</table>',
661+
undefined,
662+
],
663663
[
664664
'table - valid with thead, tfoot, colspan and rowspan',
665665
htmlToFragment('<table><tbody><tr><td>one</td></tr></tbody></table>'),

0 commit comments

Comments
 (0)