mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +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
@@ -315,7 +315,9 @@ describe("verb helpers", () => {
|
||||
await apiPost(
|
||||
"/api/foo",
|
||||
{ a: 1 },
|
||||
{ headers: new Headers({ "Content-Type": "application/json-patch+json" }) },
|
||||
{
|
||||
headers: new Headers({ "Content-Type": "application/json-patch+json" }),
|
||||
},
|
||||
);
|
||||
|
||||
const [, init] = fetchMock.mock.calls[0] as [string, RequestInit];
|
||||
|
||||
@@ -2,7 +2,11 @@ import { describe, expect, it } from "vitest";
|
||||
|
||||
import { readError } from "../read-error";
|
||||
|
||||
function makeResponse(body: unknown, status: number, opts?: { invalidJson?: boolean }): Response {
|
||||
function makeResponse(
|
||||
body: unknown,
|
||||
status: number,
|
||||
opts?: { invalidJson?: boolean },
|
||||
): Response {
|
||||
if (opts?.invalidJson) {
|
||||
return new Response("<<not json>>", {
|
||||
status,
|
||||
|
||||
@@ -58,11 +58,7 @@ export class ApiError extends Error {
|
||||
/** `meta` object of the error envelope, when the body carried one. */
|
||||
readonly meta: Record<string, unknown> | undefined;
|
||||
|
||||
constructor(
|
||||
message: string,
|
||||
status: number,
|
||||
meta?: Record<string, unknown>,
|
||||
) {
|
||||
constructor(message: string, status: number, meta?: Record<string, unknown>) {
|
||||
super(message);
|
||||
this.name = "ApiError";
|
||||
this.status = status;
|
||||
|
||||
Reference in new issue
Block a user