mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
chore(format): prettier sweep over phase-2 touched files + stale planning docs
Picks up the prettier line-wraps the v1.5 phase-1 planning docs and codex-protocol-spec.md missed, and brings the redact.ts + insights generate route test into the project's standard form. No behaviour change — pnpm format:check now passes clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d6696cf02b
commit
6b88e56aeb
6 files changed
+44
-39
No files matched your search
@@ -113,7 +113,7 @@ describe("POST /api/insights/generate — provider error mapping", () => {
|
||||
it("maps a 401 from the provider to 422 with a readable message", async () => {
|
||||
const err = Object.assign(new Error("OpenAI request failed (401)"), {
|
||||
httpStatus: 401,
|
||||
bodyExcerpt: "{\"error\":{\"code\":\"invalid_api_key\"}}",
|
||||
bodyExcerpt: '{"error":{"code":"invalid_api_key"}}',
|
||||
});
|
||||
makeProviderThatThrows(err);
|
||||
|
||||
|
||||
Reference in new issue
Block a user