mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +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
@@ -81,11 +81,12 @@ describe("/api/whoop/credentials", () => {
|
||||
|
||||
it("DELETE clears credentials and connection", async () => {
|
||||
userUpdate.mockResolvedValue({});
|
||||
(prisma.whoopConnection.delete as ReturnType<typeof vi.fn>).mockResolvedValue(
|
||||
{},
|
||||
);
|
||||
const res = (await (DELETE as unknown as () => Promise<{ data: unknown }>)())
|
||||
.data as { deleted: boolean };
|
||||
(
|
||||
prisma.whoopConnection.delete as ReturnType<typeof vi.fn>
|
||||
).mockResolvedValue({});
|
||||
const res = (
|
||||
await (DELETE as unknown as () => Promise<{ data: unknown }>)()
|
||||
).data as { deleted: boolean };
|
||||
expect(res.deleted).toBe(true);
|
||||
expect(userUpdate).toHaveBeenCalledWith({
|
||||
where: { id: "u1" },
|
||||
@@ -98,9 +99,9 @@ describe("/api/whoop/credentials", () => {
|
||||
|
||||
it("DELETE audits the teardown and parks the ledger (04-L1 parity)", async () => {
|
||||
userUpdate.mockResolvedValue({});
|
||||
(prisma.whoopConnection.delete as ReturnType<typeof vi.fn>).mockResolvedValue(
|
||||
{},
|
||||
);
|
||||
(
|
||||
prisma.whoopConnection.delete as ReturnType<typeof vi.fn>
|
||||
).mockResolvedValue({});
|
||||
await (DELETE as unknown as () => Promise<unknown>)();
|
||||
expect(auditLog).toHaveBeenCalledWith("whoop.credentials.delete", {
|
||||
userId: "u1",
|
||||
|
||||
Reference in new issue
Block a user