From fa439601c4df906ff8aae8ebdcf9a75949f77053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 3 Nov 2026 22:13:32 +0100 Subject: [PATCH] test(labs): give the unitless-marker refusal its own marker The refusal case leaned on the marker the case before it mints, and under a shuffled order it ran first and minted it itself. --- tests/integration/lab-dimensionless-unit.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/integration/lab-dimensionless-unit.test.ts b/tests/integration/lab-dimensionless-unit.test.ts index a3b4e25d0..1b08f1e1a 100644 --- a/tests/integration/lab-dimensionless-unit.test.ts +++ b/tests/integration/lab-dimensionless-unit.test.ts @@ -77,11 +77,16 @@ describe("lab CSV import of a value without a unit", () => { }); it("refuses a real unit under the marker without one", async () => { + // A marker of its own, kept in "1", rather than the one the case above + // mints: the cases run in either order. + await prisma.biomarker.create({ + data: { userId: USER, name: "LDL/HDL-Quotient", unit: "1" }, + }); const result = await run( [ "Analyt;Wert;Einheit;Datum", - "Cholesterin/HDL-Quotient;3,4;mg/dL;02.03.2025", - "Cholesterin/HDL-Quotient;3,2;1;03.03.2025", + "LDL/HDL-Quotient;3,4;mg/dL;02.03.2025", + "LDL/HDL-Quotient;3,2;1;03.03.2025", ].join("\n"), ); expect(result.errors).toEqual([