From 024f497fd82f5d2308788056b72373bd6cdc42e6 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 08:32:14 +0000 Subject: [PATCH] [T5] Test der Reparatur-Meldung: Typen korrigiert --- src/io/meshImport.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/meshImport.test.ts b/src/io/meshImport.test.ts index af236da5..a02a4455 100644 --- a/src/io/meshImport.test.ts +++ b/src/io/meshImport.test.ts @@ -194,7 +194,7 @@ describe("Mesh-Import: Abbildung auf Kontext-Meshes", () => { }); it("Bericht nennt die Reparatur ([T5]) nur, wenn etwas repariert wurde", () => { - const base = { format: "stl", up: "z", upAuto: false, upCertain: true, unitScale: 1, triangles: 12, degenerate: 0, badFaces: 0, truncated: false, warnings: [], objects: 1 } as const; + const base = { format: "stl" as const, up: "z" as const, upAuto: false, upCertain: true, unitScale: 1, triangles: 12, degenerate: 0, badFaces: 0, truncated: false, warnings: [] as string[], objects: 1 }; const tr = (k: string, v?: Record) => `${k}${v ? JSON.stringify(v) : ""}`; expect(formatMeshReport({ ...base, repaired: { welded: 0, degenerate: 0, holes: 0 } }, tr)).not.toContain("repaired"); expect(formatMeshReport({ ...base, repaired: { welded: 28, degenerate: 1, holes: 2 } }, tr)).toContain('mesh.import.repaired{"welded":28,"tris":1,"holes":2}');