@@ -38,31 +38,31 @@ describe('LexicalUtils#splitNode', () => {
3838 {
3939 _ : 'split paragraph in between two text nodes' ,
4040 expectedHtml :
41- '<p>Hello</p><p>world</p>' ,
41+ '<p>Hello</p>\n <p>world</p>' ,
4242 initialHtml : '<p><span>Hello</span><span>world</span></p>' ,
4343 splitOffset : 1 ,
4444 splitPath : [ 0 ] ,
4545 } ,
4646 {
4747 _ : 'split paragraph before the first text node' ,
4848 expectedHtml :
49- '<p><br></p><p>Helloworld</p>' ,
49+ '<p><br></p>\n <p>Helloworld</p>' ,
5050 initialHtml : '<p><span>Hello</span><span>world</span></p>' ,
5151 splitOffset : 0 ,
5252 splitPath : [ 0 ] ,
5353 } ,
5454 {
5555 _ : 'split paragraph after the last text node' ,
5656 expectedHtml :
57- '<p>Helloworld</p><p><br></p>' ,
57+ '<p>Helloworld</p>\n <p><br></p>' ,
5858 initialHtml : '<p><span>Hello</span><span>world</span></p>' ,
5959 splitOffset : 2 , // Any offset that is higher than children size
6060 splitPath : [ 0 ] ,
6161 } ,
6262 {
6363 _ : 'split list items between two text nodes' ,
6464 expectedHtml :
65- '<ul><li>Hello</li></ul>' +
65+ '<ul><li>Hello</li></ul>\n ' +
6666 '<ul><li>world</li></ul>' ,
6767 initialHtml : '<ul><li><span>Hello</span><span>world</span></li></ul>' ,
6868 splitOffset : 1 , // Any offset that is higher than children size
@@ -71,7 +71,7 @@ describe('LexicalUtils#splitNode', () => {
7171 {
7272 _ : 'split list items before the first text node' ,
7373 expectedHtml :
74- '<ul><li></li></ul>' +
74+ '<ul><li></li></ul>\n ' +
7575 '<ul><li>Helloworld</li></ul>' ,
7676 initialHtml : '<ul><li><span>Hello</span><span>world</span></li></ul>' ,
7777 splitOffset : 0 , // Any offset that is higher than children size
@@ -83,7 +83,7 @@ describe('LexicalUtils#splitNode', () => {
8383 '<ul>' +
8484 '<li>Before</li>' +
8585 '<li style="list-style: none;"><ul><li>Hello</li></ul></li>' +
86- '</ul>' +
86+ '</ul>\n ' +
8787 '<ul>' +
8888 '<li style="list-style: none;"><ul><li>world</li></ul></li>' +
8989 '<li>After</li>' +
0 commit comments