mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
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:
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([
|
||||
|
||||
Reference in new issue
Block a user