chore: bump version (#1812)

This commit is contained in:
Himself65
2023-04-04 08:46:53 -05:00
committed by GitHub
parent 5bd3aa4a80
commit 69cd22a3b8
10 changed files with 119 additions and 285 deletions

View File

@@ -135,9 +135,12 @@ describe('ydoc sync', () => {
workspace1.doc.getMap(`space:${pageId}`).toJSON()
);
const page2 = workspace2.getPage(pageId) as Page;
page1.updateBlockById(paragraphId, {
text: new page1.Text('hello world'),
});
page1.updateBlock(
page1.getBlockById(paragraphId) as ParagraphBlockModel,
{
text: new page1.Text('hello world'),
}
);
await new Promise(resolve => setTimeout(resolve, 1000));
const paragraph2 = page2.getBlockById(paragraphId) as ParagraphBlockModel;
const text = paragraph2.text as Text;