mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: bump version (#1812)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user