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.
This commit is contained in:
Marc-André Bombeck committed 2026-11-03 22:13:32 +01:00
1 parent 2c33c2a0a0
commit fa439601c4
1 file changed
+7 -2
@@ -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([