style: prettier formatting

This commit is contained in:
Marc-André Bombeck committed 2026-07-09 00:04:21 +02:00
1 parent 6831dc2a15
commit 801aa73de0
3 files changed
+9 -5

No files matched your search

@@ -52,10 +52,11 @@ beforeEach(() => {
mapWeightMock.mockClear();
// Weight returns one point (whose mapper throws); everything else is empty so
// its real mapper is never exercised.
fetchDataPointsMock.mockReset().mockImplementation(
async (_dt: unknown, _token: string, verb: string) =>
fetchDataPointsMock
.mockReset()
.mockImplementation(async (_dt: unknown, _token: string, verb: string) =>
verb === "fetchWeight" ? [{ any: "point" }] : [],
);
);
});
describe("syncUserMetrics — a throwing mapper never skips sibling types", () => {
@@ -165,7 +165,9 @@ describe("readDailySeries — rollup read throw falls back to live SQL (F-DB-2)"
const from = new Date(to.getTime() - 90 * DAY_MS);
// The primary rollup read throws (statement_timeout / deadlock / reset).
mocks.findMany.mockReset().mockRejectedValue(new Error("statement timeout"));
mocks.findMany
.mockReset()
.mockRejectedValue(new Error("statement timeout"));
// Live fallback serves the tile.
mocks.queryRaw.mockResolvedValueOnce([
{
+2 -1
View File
@@ -275,7 +275,8 @@ async function fetchAll(
rotated.refresh_token,
refreshTokenCiphertext,
);
if (!usableToken) return { readings: first.readings, failures: first.failures };
if (!usableToken)
return { readings: first.readings, failures: first.failures };
const retry = await attempt(usableToken, first.failed);
return {