mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
style: prettier formatting
This commit is contained in:
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([
|
||||
{
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user