mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +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
@@ -157,7 +157,9 @@ async function seedMood(n: number): Promise<string[]> {
|
||||
}
|
||||
|
||||
/** Seed one medication + n live intake events with increasing updatedAt. */
|
||||
async function seedIntakes(n: number): Promise<{ medId: string; ids: string[] }> {
|
||||
async function seedIntakes(
|
||||
n: number,
|
||||
): Promise<{ medId: string; ids: string[] }> {
|
||||
const prisma = getPrismaClient();
|
||||
const base = new Date("2026-05-20T00:00:00.000Z").getTime();
|
||||
const med = await prisma.medication.create({
|
||||
@@ -258,9 +260,8 @@ describe("GET /api/sync/changes (real Postgres)", () => {
|
||||
});
|
||||
|
||||
// Soft-delete the first row via the DELETE route (the production path).
|
||||
const { DELETE } = await import(
|
||||
"@/app/api/measurements/by-external-ids/route"
|
||||
);
|
||||
const { DELETE } =
|
||||
await import("@/app/api/measurements/by-external-ids/route");
|
||||
const delReq = new NextRequest(
|
||||
"http://localhost/api/measurements/by-external-ids",
|
||||
{
|
||||
@@ -499,9 +500,8 @@ describe("GET /api/sync/changes — intake domain (real Postgres)", () => {
|
||||
it("surfaces a soft-deleted intake as a tombstone keyed on id, never an upsert", async () => {
|
||||
const { medId, ids } = await seedIntakes(2);
|
||||
const [delId, keepId] = ids;
|
||||
const { DELETE } = await import(
|
||||
"@/app/api/medications/[id]/intake/[eventId]/route"
|
||||
);
|
||||
const { DELETE } =
|
||||
await import("@/app/api/medications/[id]/intake/[eventId]/route");
|
||||
await DELETE(
|
||||
new NextRequest(
|
||||
`http://localhost/api/medications/${medId}/intake/${delId}`,
|
||||
|
||||
Reference in new issue
Block a user