mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 14:32:03 +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
@@ -36,7 +36,9 @@ describe("redactSecrets", () => {
|
||||
);
|
||||
// v1.12.2 — one-time WHOOP connect ticket in the connect URL.
|
||||
expect(
|
||||
redactSecrets("GET /api/whoop/connect?ticket=abc_DEF-123&return_scheme=x"),
|
||||
redactSecrets(
|
||||
"GET /api/whoop/connect?ticket=abc_DEF-123&return_scheme=x",
|
||||
),
|
||||
).toBe("GET /api/whoop/connect?ticket=[REDACTED]&return_scheme=x");
|
||||
});
|
||||
|
||||
@@ -165,9 +167,9 @@ describe("redactSecrets", () => {
|
||||
it("preserves query strings after the secret segment", () => {
|
||||
// Note: the existing query-string rule then redacts the
|
||||
// `?secret=…` payload too; both layers compose.
|
||||
expect(
|
||||
redactSecrets("/api/withings/webhook/test-secret?retries=2"),
|
||||
).toBe("/api/withings/webhook/[REDACTED]?retries=2");
|
||||
expect(redactSecrets("/api/withings/webhook/test-secret?retries=2")).toBe(
|
||||
"/api/withings/webhook/[REDACTED]?retries=2",
|
||||
);
|
||||
});
|
||||
|
||||
it("redacts an absolute URL form (origin + path-segment secret)", () => {
|
||||
|
||||
@@ -32,4 +32,3 @@ export async function withBackgroundEvent<T>(
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user