2024-05-24 16:15:14 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2024-06-07 15:52:40 +00:00
|
|
|
exports[`tables doesnt wrap floated tables 1`] = `
|
|
|
|
"
|
2024-10-02 19:04:07 +00:00
|
|
|
<div class=\\"mw-parser-output\\">
|
|
|
|
<table class=\\"wikitable\\" style=\\"float:right\\">
|
|
|
|
<tbody>
|
|
|
|
<tr><th>table table table</th></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div>
|
|
|
|
</div></div>"
|
2024-06-07 15:52:40 +00:00
|
|
|
`;
|
|
|
|
|
2024-05-24 16:15:14 +00:00
|
|
|
exports[`tables doesnt wrap nested tables 1`] = `
|
|
|
|
"
|
2024-10-02 19:04:07 +00:00
|
|
|
<div class=\\"mw-parser-output\\">
|
2024-05-28 21:36:07 +00:00
|
|
|
<div class=\\"noresize\\"><table class=\\"wikitable\\">
|
2024-05-24 16:15:14 +00:00
|
|
|
<tbody>
|
|
|
|
<tr><th>table table table</th></tr>
|
2024-05-29 18:38:19 +00:00
|
|
|
<tr><td><table class=\\"wikitable\\"><tbody><tr><th>table table table</th></tr></tbody></table></td><td></td></tr>
|
2024-05-24 16:15:14 +00:00
|
|
|
</tbody>
|
|
|
|
</table></div>
|
2024-10-02 19:04:07 +00:00
|
|
|
</div>
|
2024-05-24 16:15:14 +00:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2024-10-02 19:04:07 +00:00
|
|
|
exports[`tables doesnt wrap tables that already have noresize 1`] = `
|
2024-05-28 21:36:07 +00:00
|
|
|
"
|
|
|
|
<div class=\\"mw-parser-output\\">
|
2024-06-07 15:52:40 +00:00
|
|
|
<div class=\\"noresize\\">
|
|
|
|
<table class=\\"wikitable\\">
|
2024-05-28 21:36:07 +00:00
|
|
|
<tbody>
|
|
|
|
<tr><th>table table table</th></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2024-10-02 19:04:07 +00:00
|
|
|
exports[`tables doesnt wrap tables that are already wrapped 1`] = `
|
2024-05-28 21:36:07 +00:00
|
|
|
"
|
2024-10-02 19:04:07 +00:00
|
|
|
<div class=\\"mw-parser-output\\">
|
|
|
|
<div>
|
|
|
|
<table class=\\"wikitable\\">
|
|
|
|
<tbody>
|
|
|
|
<tr><th>table table table</th></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-28 21:36:07 +00:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2024-10-02 19:04:07 +00:00
|
|
|
exports[`tables doesnt wrap tables that are not wikitables 1`] = `
|
|
|
|
"
|
|
|
|
<div class=\\"mw-parser-output\\">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr><th>table table table</th></tr>
|
|
|
|
<tr><td><table><tbody><tr><th>table table table</th></tr></tbody></table></td><td></td></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div>
|
|
|
|
</div></div>"
|
|
|
|
`;
|
|
|
|
|
2024-05-24 16:15:14 +00:00
|
|
|
exports[`tables wraps multiple table with div 1`] = `
|
|
|
|
"
|
2024-10-02 19:04:07 +00:00
|
|
|
<div class=\\"mw-parser-output\\">
|
2024-05-28 21:36:07 +00:00
|
|
|
<div class=\\"noresize\\"><table class=\\"wikitable\\">
|
2024-05-24 16:15:14 +00:00
|
|
|
<tbody><tr><th>table table table</th></tr></tbody>
|
|
|
|
</table></div>
|
2024-05-29 18:38:19 +00:00
|
|
|
<div class=\\"noresize\\"><table class=\\"wikitable\\">
|
|
|
|
</table></div><div class=\\"noresize\\"><table class=\\"wikitable\\">
|
|
|
|
<tbody><tr><th>table table table</th></tr></tbody>
|
|
|
|
</table></div>
|
2024-05-28 21:36:07 +00:00
|
|
|
<div class=\\"noresize\\"><table class=\\"wikitable\\">
|
2024-05-24 16:15:14 +00:00
|
|
|
<tbody><tr><th>table table table</th></tr></tbody>
|
|
|
|
</table></div>
|
2024-10-02 19:04:07 +00:00
|
|
|
</div>
|
2024-05-24 16:15:14 +00:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`tables wraps table with div 1`] = `
|
|
|
|
"
|
2024-10-02 19:04:07 +00:00
|
|
|
<div class=\\"mw-parser-output\\">
|
2024-05-28 21:36:07 +00:00
|
|
|
<div class=\\"noresize\\"><table class=\\"wikitable\\">
|
2024-05-24 16:15:14 +00:00
|
|
|
<tbody><tr><th>table table table</th></tr></tbody>
|
|
|
|
</table></div>
|
2024-10-02 19:04:07 +00:00
|
|
|
</div>
|
2024-05-24 16:15:14 +00:00
|
|
|
"
|
|
|
|
`;
|