|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`must convert empty list item ContentBlock to unstyled rather than split 1`] = ` |
| 4 | +Array [ |
| 5 | + Object { |
| 6 | + "characterList": Array [ |
| 7 | + Object { |
| 8 | + "entity": null, |
| 9 | + "style": Array [], |
| 10 | + }, |
| 11 | + Object { |
| 12 | + "entity": null, |
| 13 | + "style": Array [], |
| 14 | + }, |
| 15 | + Object { |
| 16 | + "entity": null, |
| 17 | + "style": Array [], |
| 18 | + }, |
| 19 | + Object { |
| 20 | + "entity": null, |
| 21 | + "style": Array [], |
| 22 | + }, |
| 23 | + Object { |
| 24 | + "entity": null, |
| 25 | + "style": Array [], |
| 26 | + }, |
| 27 | + ], |
| 28 | + "children": Array [], |
| 29 | + "data": Object {}, |
| 30 | + "depth": 0, |
| 31 | + "key": "A", |
| 32 | + "nextSibling": "B", |
| 33 | + "parent": null, |
| 34 | + "prevSibling": null, |
| 35 | + "text": "Alpha", |
| 36 | + "type": "unstyled", |
| 37 | + }, |
| 38 | + Object { |
| 39 | + "characterList": Array [], |
| 40 | + "children": Array [ |
| 41 | + "C", |
| 42 | + "F", |
| 43 | + ], |
| 44 | + "data": Object {}, |
| 45 | + "depth": 0, |
| 46 | + "key": "B", |
| 47 | + "nextSibling": "G", |
| 48 | + "parent": null, |
| 49 | + "prevSibling": "A", |
| 50 | + "text": "", |
| 51 | + "type": "unstyled", |
| 52 | + }, |
| 53 | + Object { |
| 54 | + "characterList": Array [], |
| 55 | + "children": Array [ |
| 56 | + "D", |
| 57 | + "E", |
| 58 | + ], |
| 59 | + "data": Object {}, |
| 60 | + "depth": 0, |
| 61 | + "key": "C", |
| 62 | + "nextSibling": "F", |
| 63 | + "parent": "B", |
| 64 | + "prevSibling": null, |
| 65 | + "text": "", |
| 66 | + "type": "unstyled", |
| 67 | + }, |
| 68 | + Object { |
| 69 | + "characterList": Array [ |
| 70 | + Object { |
| 71 | + "entity": null, |
| 72 | + "style": Array [], |
| 73 | + }, |
| 74 | + Object { |
| 75 | + "entity": null, |
| 76 | + "style": Array [], |
| 77 | + }, |
| 78 | + Object { |
| 79 | + "entity": null, |
| 80 | + "style": Array [], |
| 81 | + }, |
| 82 | + Object { |
| 83 | + "entity": null, |
| 84 | + "style": Array [], |
| 85 | + }, |
| 86 | + Object { |
| 87 | + "entity": null, |
| 88 | + "style": Array [], |
| 89 | + }, |
| 90 | + ], |
| 91 | + "children": Array [], |
| 92 | + "data": Object {}, |
| 93 | + "depth": 0, |
| 94 | + "key": "D", |
| 95 | + "nextSibling": "E", |
| 96 | + "parent": "C", |
| 97 | + "prevSibling": null, |
| 98 | + "text": "Delta", |
| 99 | + "type": "unstyled", |
| 100 | + }, |
| 101 | + Object { |
| 102 | + "characterList": Array [ |
| 103 | + Object { |
| 104 | + "entity": null, |
| 105 | + "style": Array [], |
| 106 | + }, |
| 107 | + Object { |
| 108 | + "entity": null, |
| 109 | + "style": Array [], |
| 110 | + }, |
| 111 | + Object { |
| 112 | + "entity": null, |
| 113 | + "style": Array [], |
| 114 | + }, |
| 115 | + Object { |
| 116 | + "entity": null, |
| 117 | + "style": Array [], |
| 118 | + }, |
| 119 | + Object { |
| 120 | + "entity": null, |
| 121 | + "style": Array [], |
| 122 | + }, |
| 123 | + Object { |
| 124 | + "entity": null, |
| 125 | + "style": Array [], |
| 126 | + }, |
| 127 | + Object { |
| 128 | + "entity": null, |
| 129 | + "style": Array [], |
| 130 | + }, |
| 131 | + Object { |
| 132 | + "entity": null, |
| 133 | + "style": Array [], |
| 134 | + }, |
| 135 | + ], |
| 136 | + "children": Array [], |
| 137 | + "data": Object {}, |
| 138 | + "depth": 0, |
| 139 | + "key": "E", |
| 140 | + "nextSibling": null, |
| 141 | + "parent": "C", |
| 142 | + "prevSibling": "D", |
| 143 | + "text": "Elephant", |
| 144 | + "type": "unstyled", |
| 145 | + }, |
| 146 | + Object { |
| 147 | + "characterList": Array [ |
| 148 | + Object { |
| 149 | + "entity": null, |
| 150 | + "style": Array [], |
| 151 | + }, |
| 152 | + Object { |
| 153 | + "entity": null, |
| 154 | + "style": Array [], |
| 155 | + }, |
| 156 | + Object { |
| 157 | + "entity": null, |
| 158 | + "style": Array [], |
| 159 | + }, |
| 160 | + Object { |
| 161 | + "entity": null, |
| 162 | + "style": Array [], |
| 163 | + }, |
| 164 | + ], |
| 165 | + "children": Array [], |
| 166 | + "data": Object {}, |
| 167 | + "depth": 0, |
| 168 | + "key": "F", |
| 169 | + "nextSibling": null, |
| 170 | + "parent": "B", |
| 171 | + "prevSibling": "C", |
| 172 | + "text": "Fire", |
| 173 | + "type": "unstyled", |
| 174 | + }, |
| 175 | + Object { |
| 176 | + "characterList": Array [ |
| 177 | + Object { |
| 178 | + "entity": null, |
| 179 | + "style": Array [], |
| 180 | + }, |
| 181 | + Object { |
| 182 | + "entity": null, |
| 183 | + "style": Array [], |
| 184 | + }, |
| 185 | + Object { |
| 186 | + "entity": null, |
| 187 | + "style": Array [], |
| 188 | + }, |
| 189 | + Object { |
| 190 | + "entity": null, |
| 191 | + "style": Array [], |
| 192 | + }, |
| 193 | + Object { |
| 194 | + "entity": null, |
| 195 | + "style": Array [], |
| 196 | + }, |
| 197 | + Object { |
| 198 | + "entity": null, |
| 199 | + "style": Array [], |
| 200 | + }, |
| 201 | + ], |
| 202 | + "children": Array [], |
| 203 | + "data": Object {}, |
| 204 | + "depth": 0, |
| 205 | + "key": "G", |
| 206 | + "nextSibling": null, |
| 207 | + "parent": null, |
| 208 | + "prevSibling": "B", |
| 209 | + "text": "Gorila", |
| 210 | + "type": "unstyled", |
| 211 | + }, |
| 212 | + Object { |
| 213 | + "characterList": Array [], |
| 214 | + "children": Array [], |
| 215 | + "data": Object {}, |
| 216 | + "depth": 0, |
| 217 | + "key": "H", |
| 218 | + "nextSibling": null, |
| 219 | + "parent": null, |
| 220 | + "prevSibling": "G", |
| 221 | + "text": "", |
| 222 | + "type": "unstyled", |
| 223 | + }, |
| 224 | +] |
| 225 | +`; |
| 226 | + |
3 | 227 | exports[`must split at the beginning of a block 1`] = `
|
4 | 228 | Array [
|
5 | 229 | Object {
|
@@ -395,6 +619,18 @@ Array [
|
395 | 619 | "text": "Gorila",
|
396 | 620 | "type": "unstyled",
|
397 | 621 | },
|
| 622 | + Object { |
| 623 | + "characterList": Array [], |
| 624 | + "children": Array [], |
| 625 | + "data": Object {}, |
| 626 | + "depth": 0, |
| 627 | + "key": "H", |
| 628 | + "nextSibling": null, |
| 629 | + "parent": null, |
| 630 | + "prevSibling": "G", |
| 631 | + "text": "", |
| 632 | + "type": "unordered-list-item", |
| 633 | + }, |
398 | 634 | ]
|
399 | 635 | `;
|
400 | 636 |
|
@@ -619,6 +855,18 @@ Array [
|
619 | 855 | "text": "Gorila",
|
620 | 856 | "type": "unstyled",
|
621 | 857 | },
|
| 858 | + Object { |
| 859 | + "characterList": Array [], |
| 860 | + "children": Array [], |
| 861 | + "data": Object {}, |
| 862 | + "depth": 0, |
| 863 | + "key": "H", |
| 864 | + "nextSibling": null, |
| 865 | + "parent": null, |
| 866 | + "prevSibling": "G", |
| 867 | + "text": "", |
| 868 | + "type": "unordered-list-item", |
| 869 | + }, |
622 | 870 | ]
|
623 | 871 | `;
|
624 | 872 |
|
@@ -1017,6 +1265,18 @@ Array [
|
1017 | 1265 | "text": "Gorila",
|
1018 | 1266 | "type": "unstyled",
|
1019 | 1267 | },
|
| 1268 | + Object { |
| 1269 | + "characterList": Array [], |
| 1270 | + "children": Array [], |
| 1271 | + "data": Object {}, |
| 1272 | + "depth": 0, |
| 1273 | + "key": "H", |
| 1274 | + "nextSibling": null, |
| 1275 | + "parent": null, |
| 1276 | + "prevSibling": "G", |
| 1277 | + "text": "", |
| 1278 | + "type": "unordered-list-item", |
| 1279 | + }, |
1020 | 1280 | ]
|
1021 | 1281 | `;
|
1022 | 1282 |
|
@@ -1241,6 +1501,18 @@ Array [
|
1241 | 1501 | "text": "Gorila",
|
1242 | 1502 | "type": "unstyled",
|
1243 | 1503 | },
|
| 1504 | + Object { |
| 1505 | + "characterList": Array [], |
| 1506 | + "children": Array [], |
| 1507 | + "data": Object {}, |
| 1508 | + "depth": 0, |
| 1509 | + "key": "H", |
| 1510 | + "nextSibling": null, |
| 1511 | + "parent": null, |
| 1512 | + "prevSibling": "G", |
| 1513 | + "text": "", |
| 1514 | + "type": "unordered-list-item", |
| 1515 | + }, |
1244 | 1516 | ]
|
1245 | 1517 | `;
|
1246 | 1518 |
|
@@ -1641,6 +1913,18 @@ Array [
|
1641 | 1913 | "text": "Gorila",
|
1642 | 1914 | "type": "unstyled",
|
1643 | 1915 | },
|
| 1916 | + Object { |
| 1917 | + "characterList": Array [], |
| 1918 | + "children": Array [], |
| 1919 | + "data": Object {}, |
| 1920 | + "depth": 0, |
| 1921 | + "key": "H", |
| 1922 | + "nextSibling": null, |
| 1923 | + "parent": null, |
| 1924 | + "prevSibling": "G", |
| 1925 | + "text": "", |
| 1926 | + "type": "unordered-list-item", |
| 1927 | + }, |
1644 | 1928 | ]
|
1645 | 1929 | `;
|
1646 | 1930 |
|
@@ -1866,5 +2150,17 @@ Array [
|
1866 | 2150 | "text": "Gorila",
|
1867 | 2151 | "type": "unstyled",
|
1868 | 2152 | },
|
| 2153 | + Object { |
| 2154 | + "characterList": Array [], |
| 2155 | + "children": Array [], |
| 2156 | + "data": Object {}, |
| 2157 | + "depth": 0, |
| 2158 | + "key": "H", |
| 2159 | + "nextSibling": null, |
| 2160 | + "parent": null, |
| 2161 | + "prevSibling": "G", |
| 2162 | + "text": "", |
| 2163 | + "type": "unordered-list-item", |
| 2164 | + }, |
1869 | 2165 | ]
|
1870 | 2166 | `;
|
0 commit comments