fix(blocks): only split paragraphs based on newlines #7573
Annotations
1 error, 1 warning, and 1 notice
tests/utils/asserts.ts#L209
1) paragraph.spec.ts:228:1 › insert new paragraph block by enter ─────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
"",
- "",
- "",
+ "
+ ",
]
at utils/asserts.ts:209
207 | });
208 | }, currentEditorIndex);
> 209 | expect(actualTexts).toEqual(texts);
| ^
210 | }
211 |
212 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:209:23)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:234:3
|
|
|
This job succeeded
Loading