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

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

No files matched your search

@@ -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();