openpencil/tests/helpers/clipboard.ts
Danila Poyarkov 0532dfc697 test(clipboard): split editor clipboard coverage
- Move clipboard.test.ts into focused import, bounds, HTML encoding, and fixture roundtrip files
- Add a shared clipboard graph helper for import tests
- Preserve all 29 clipboard tests after the split
2026-05-06 01:53:10 +03:00

8 lines
228 B
TypeScript

import { SceneGraph } from '@open-pencil/core'
export function createClipboardGraph(): { graph: SceneGraph; pageId: string } {
const graph = new SceneGraph()
graph.addPage('Test')
return { graph, pageId: graph.rootId }
}