Update test to use createProjectDocumentFromSceneDocument

This commit is contained in:
2026-04-11 03:51:10 +02:00
parent e80b75e7e0
commit eab3e4511a

View File

@@ -141,7 +141,15 @@ describe("local draft storage", () => {
viewportLayoutState.panels.topLeft.cameraState.perspectiveOrbit.theta = 1.25;
viewportLayoutState.panels.topLeft.cameraState.orthographicZoom = 2.5;
expect(saveSceneDocumentDraft(storage, createEmptySceneDocument({ name: "Viewport Draft" }), viewportLayoutState)).toEqual({
expect(
saveSceneDocumentDraft(
storage,
createProjectDocumentFromSceneDocument(
createEmptySceneDocument({ name: "Viewport Draft" })
),
viewportLayoutState
)
).toEqual({
status: "saved",
message: "Autosave updated."
});