mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
refactor(core): move block collection to affine and implement as doc (#9514)
This commit is contained in:
@@ -64,11 +64,11 @@ test(scoped`basic init with external text`, async ({ page }) => {
|
||||
await page.evaluate(() => {
|
||||
const { doc } = window;
|
||||
const rootId = doc.addBlock('affine:page', {
|
||||
title: new doc.Text('hello'),
|
||||
title: new window.$blocksuite.store.Text('hello'),
|
||||
});
|
||||
const note = doc.addBlock('affine:note', {}, rootId);
|
||||
|
||||
const text = new doc.Text('world');
|
||||
const text = new window.$blocksuite.store.Text('world');
|
||||
doc.addBlock('affine:paragraph', { text }, note);
|
||||
|
||||
const delta = [
|
||||
@@ -78,7 +78,7 @@ test(scoped`basic init with external text`, async ({ page }) => {
|
||||
doc.addBlock(
|
||||
'affine:paragraph',
|
||||
{
|
||||
text: new doc.Text(delta as DeltaInsert[]),
|
||||
text: new window.$blocksuite.store.Text(delta as DeltaInsert[]),
|
||||
},
|
||||
note
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user