mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-31 17:19:56 +08:00
chore: bump blocksuite (#1298)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
@@ -41,7 +41,7 @@ beforeEach(async () => {
|
||||
})
|
||||
.register(builtInSchemas)
|
||||
.register(__unstableSchemas);
|
||||
blockSuiteWorkspace.signals.pageAdded.on(pageId => {
|
||||
blockSuiteWorkspace.slots.pageAdded.on(pageId => {
|
||||
setTimeout(() => {
|
||||
const page = blockSuiteWorkspace.getPage(pageId);
|
||||
expect(page).not.toBeNull();
|
||||
|
||||
@@ -22,7 +22,7 @@ beforeEach(() => {
|
||||
})
|
||||
.register(builtInSchemas)
|
||||
.register(__unstableSchemas);
|
||||
blockSuiteWorkspace.signals.pageAdded.on(pageId => {
|
||||
blockSuiteWorkspace.slots.pageAdded.on(pageId => {
|
||||
const page = blockSuiteWorkspace.getPage(pageId) as Page;
|
||||
const pageBlockId = page.addBlockByFlavour('affine:page', { title: '' });
|
||||
const frameId = page.addBlockByFlavour('affine:frame', {}, pageBlockId);
|
||||
|
||||
Reference in New Issue
Block a user