| 1 |
// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 |
|
| 3 |
exports[`tables doesnt wrap floated tables 1`] = ` |
| 4 |
" |
| 5 |
<div class=\\"mw-parser-output\\"> |
| 6 |
<table class=\\"wikitable\\" style=\\"float:right\\"> |
| 7 |
<tbody> |
| 8 |
<tr><th>table table table</th></tr> |
| 9 |
</tbody> |
| 10 |
</table> |
| 11 |
<div> |
| 12 |
</div></div>" |
| 13 |
`; |
| 14 |
|
| 15 |
exports[`tables doesnt wrap nested tables 1`] = ` |
| 16 |
" |
| 17 |
<div class=\\"mw-parser-output\\"> |
| 18 |
<div class=\\"noresize\\"><table class=\\"wikitable\\"> |
| 19 |
<tbody> |
| 20 |
<tr><th>table table table</th></tr> |
| 21 |
<tr><td><table class=\\"wikitable\\"><tbody><tr><th>table table table</th></tr></tbody></table></td><td></td></tr> |
| 22 |
</tbody> |
| 23 |
</table></div> |
| 24 |
</div> |
| 25 |
" |
| 26 |
`; |
| 27 |
|
| 28 |
exports[`tables doesnt wrap tables that already have noresize 1`] = ` |
| 29 |
" |
| 30 |
<div class=\\"mw-parser-output\\"> |
| 31 |
<div class=\\"noresize\\"> |
| 32 |
<table class=\\"wikitable\\"> |
| 33 |
<tbody> |
| 34 |
<tr><th>table table table</th></tr> |
| 35 |
</tbody> |
| 36 |
</table> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
" |
| 40 |
`; |
| 41 |
|
| 42 |
exports[`tables doesnt wrap tables that are already wrapped 1`] = ` |
| 43 |
" |
| 44 |
<div class=\\"mw-parser-output\\"> |
| 45 |
<div> |
| 46 |
<table class=\\"wikitable\\"> |
| 47 |
<tbody> |
| 48 |
<tr><th>table table table</th></tr> |
| 49 |
</tbody> |
| 50 |
</table> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
" |
| 54 |
`; |
| 55 |
|
| 56 |
exports[`tables doesnt wrap tables that are not wikitables 1`] = ` |
| 57 |
" |
| 58 |
<div class=\\"mw-parser-output\\"> |
| 59 |
<table> |
| 60 |
<tbody> |
| 61 |
<tr><th>table table table</th></tr> |
| 62 |
<tr><td><table><tbody><tr><th>table table table</th></tr></tbody></table></td><td></td></tr> |
| 63 |
</tbody> |
| 64 |
</table> |
| 65 |
<div> |
| 66 |
</div></div>" |
| 67 |
`; |
| 68 |
|
| 69 |
exports[`tables wraps multiple table with div 1`] = ` |
| 70 |
" |
| 71 |
<div class=\\"mw-parser-output\\"> |
| 72 |
<div class=\\"noresize\\"><table class=\\"wikitable\\"> |
| 73 |
<tbody><tr><th>table table table</th></tr></tbody> |
| 74 |
</table></div> |
| 75 |
<div class=\\"noresize\\"><table class=\\"wikitable\\"> |
| 76 |
</table></div><div class=\\"noresize\\"><table class=\\"wikitable\\"> |
| 77 |
<tbody><tr><th>table table table</th></tr></tbody> |
| 78 |
</table></div> |
| 79 |
<div class=\\"noresize\\"><table class=\\"wikitable\\"> |
| 80 |
<tbody><tr><th>table table table</th></tr></tbody> |
| 81 |
</table></div> |
| 82 |
</div> |
| 83 |
" |
| 84 |
`; |
| 85 |
|
| 86 |
exports[`tables wraps table with div 1`] = ` |
| 87 |
" |
| 88 |
<div class=\\"mw-parser-output\\"> |
| 89 |
<div class=\\"noresize\\"><table class=\\"wikitable\\"> |
| 90 |
<tbody><tr><th>table table table</th></tr></tbody> |
| 91 |
</table></div> |
| 92 |
</div> |
| 93 |
" |
| 94 |
`; |