mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 14:32:03 +00:00
style: apply prettier across the tree
One-shot prettier pass so the new format:check gate starts from a clean baseline. Formatting only — no behaviour change. Generator-owned and vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
1 parent
b3fea2ef59
commit
1f4ba5939d
1000 files changed
+12130
-8385
No files matched your search
@@ -11,10 +11,7 @@ function render(node: React.ReactNode) {
|
||||
);
|
||||
}
|
||||
|
||||
function day(
|
||||
date: string,
|
||||
overrides: Partial<CalendarDay> = {},
|
||||
): CalendarDay {
|
||||
function day(date: string, overrides: Partial<CalendarDay> = {}): CalendarDay {
|
||||
return {
|
||||
date,
|
||||
phase: "FOLLICULAR",
|
||||
|
||||
@@ -29,7 +29,10 @@ describe("<FieldInfo>", () => {
|
||||
// Radix renders the tooltip content lazily (portal, on open); the trigger
|
||||
// therefore reports a closed state until interacted with.
|
||||
const html = render(
|
||||
<FieldInfo label="Cervical mucus" detail="Discharge changes across the cycle." />,
|
||||
<FieldInfo
|
||||
label="Cervical mucus"
|
||||
detail="Discharge changes across the cycle."
|
||||
/>,
|
||||
);
|
||||
expect(html).toContain('data-state="closed"');
|
||||
});
|
||||
|
||||
@@ -107,7 +107,11 @@ describe("buildDayLogInput (new row → omit empties)", () => {
|
||||
);
|
||||
expect(input.basalBodyTempC).toBe(36.5);
|
||||
expect(input.temperatureExcluded).toBe(true);
|
||||
const patch = buildDayLogPatch({ ...blank(), bbt: "36.5", bbtDisturbed: true });
|
||||
const patch = buildDayLogPatch({
|
||||
...blank(),
|
||||
bbt: "36.5",
|
||||
bbtDisturbed: true,
|
||||
});
|
||||
expect(patch.temperatureExcluded).toBe(true);
|
||||
});
|
||||
|
||||
@@ -145,7 +149,13 @@ describe("buildDayLogInput (new row → omit empties)", () => {
|
||||
describe("section summary-badge counts (v1.17.0)", () => {
|
||||
it("counts each logged symptom", () => {
|
||||
expect(symptomsCount(blank())).toBe(0);
|
||||
const s = { ...blank(), symptoms: new Map([["cramps", 2], ["headache", null]]) };
|
||||
const s = {
|
||||
...blank(),
|
||||
symptoms: new Map([
|
||||
["cramps", 2],
|
||||
["headache", null],
|
||||
]),
|
||||
};
|
||||
expect(symptomsCount(s)).toBe(2);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user