mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +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
@@ -67,14 +67,18 @@ describe("OAuth signed state (Polar / Oura)", () => {
|
||||
it("rejects an expired token even with a valid signature", () => {
|
||||
const now = 10_000;
|
||||
const token = mintSignedState("polar", "u1", now);
|
||||
expect(verifySignedState("polar", token, now + OAUTH_STATE_TTL_MS + 1)).toBeNull();
|
||||
expect(
|
||||
verifySignedState("polar", token, now + OAUTH_STATE_TTL_MS + 1),
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it("rejects malformed shapes and empty input", () => {
|
||||
expect(verifySignedState("polar", null)).toBeNull();
|
||||
expect(verifySignedState("polar", "")).toBeNull();
|
||||
expect(verifySignedState("polar", "a.b.c")).toBeNull();
|
||||
expect(verifySignedState("polar", "polar.u1.notanumber.nonce.tag")).toBeNull();
|
||||
expect(
|
||||
verifySignedState("polar", "polar.u1.notanumber.nonce.tag"),
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it("a token minted under a different key fails verification", () => {
|
||||
|
||||
Reference in new issue
Block a user