refactor(editor): remove page root service (#12048)

This commit is contained in:
Saul-Mirone
2025-04-29 03:19:37 +00:00
parent 4c84e6bac7
commit e96fcf0c35
8 changed files with 8 additions and 32 deletions

View File

@@ -270,12 +270,8 @@ import snapshot from '../snapshots/edgeless/surface-ref.spec.ts/surface-ref.json
describe('clipboard', () => {
test('import surface-ref snapshot should render content correctly', async () => {
await setupEditor('page');
const pageRoot = getDocRootBlock(doc, editor, 'page');
const pageRootService = pageRoot.service;
const newDoc = await importFromSnapshot(
pageRootService.collection,
doc.workspace,
snapshot as DocSnapshot
);
expect(newDoc).toBeTruthy();