style: satisfy v1.34.1 format gate

This commit is contained in:
Marc-André Bombeck committed 2026-07-29 15:59:12 +02:00
1 parent b0a94b3423
commit 75aa850eae
10 files changed
+71 -59

No files matched your search

@@ -56,7 +56,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
if (parsed.data.method === "password") {
proved = Boolean(
user.passwordHash &&
(await verifyPassword(user.passwordHash, parsed.data.password)),
(await verifyPassword(user.passwordHash, parsed.data.password)),
);
} else if (parsed.data.method === "totp") {
const result = await verifyMfaFactor(user, "totp", parsed.data.code);
+1 -2
View File
@@ -53,8 +53,7 @@ vi.mock("@/lib/ai/coach/tools/inventory", () => ({
buildCoachDataInventory: vi.fn(),
}));
vi.mock("@/lib/mcp/server", async (importOriginal) => {
const actual =
await importOriginal<typeof import("@/lib/mcp/server")>();
const actual = await importOriginal<typeof import("@/lib/mcp/server")>();
return {
...actual,
createMcpServer: (...args: Parameters<typeof actual.createMcpServer>) => {
+1 -4
View File
@@ -106,10 +106,7 @@ export async function parseAppleHealthEcgCsv(input: {
}
const [key, value] = pair;
if (!inSamples) {
if (
key.toLowerCase() === "lead" &&
value.toLowerCase() === "voltage"
) {
if (key.toLowerCase() === "lead" && value.toLowerCase() === "voltage") {
inSamples = true;
continue;
}
@@ -629,9 +629,7 @@ describe("Mounjaro rolling weekly — canonical overdue band after day change",
now: d("2026-07-29T10:00:00.000Z"),
userTz: BERLIN,
lastIntakeAt:
status === "taken"
? d("2026-07-28T06:10:00.000Z")
: lastTaken,
status === "taken" ? d("2026-07-28T06:10:00.000Z") : lastTaken,
resolvedSlots: [
identifiedMark(missedOccurrence, {
scheduleId: "mounjaro-weekly",