From b63071e81540c36ea0a534e71df4df26ca48f7c3 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 12:43:22 +0200 Subject: [PATCH] Update test for scene document JSON migration of player start entity --- tests/serialization/scene-document-json.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/serialization/scene-document-json.test.ts b/tests/serialization/scene-document-json.test.ts index d3191969..ebcbbc4c 100644 --- a/tests/serialization/scene-document-json.test.ts +++ b/tests/serialization/scene-document-json.test.ts @@ -623,7 +623,13 @@ describe("scene document JSON", () => { const migratedDocument = migrateSceneDocument(legacyDocument); expect(migratedDocument.version).toBe(SCENE_DOCUMENT_VERSION); - expect(migratedDocument.entities[playerStart.id]).toEqual(playerStart); + expect(migratedDocument.entities[playerStart.id]).toEqual( + createPlayerStartEntity({ + id: playerStart.id, + position: playerStart.position, + yawDegrees: playerStart.yawDegrees + }) + ); }); it("migrates version 24 Player Start entities to default to first-person navigation", () => {