mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
docs(01-02): complete PWA and SSRF red contracts plan
- document expected cache-isolation and transition-form failures - record preserved public and redirect behavior - capture atomic task commits and verification evidence
This commit is contained in:
1 parent
abea48026b
commit
cc8567d82f
2 files changed
+136
-2
No files matched your search
@@ -114,7 +114,11 @@ describe("rotateConnection — happy path", () => {
|
||||
it("uses the supplied transaction client for the entire rotation", async () => {
|
||||
TX.mcpOAuthConnection.findUnique.mockResolvedValue({ ...CONN });
|
||||
|
||||
const out = await rotateConnection(
|
||||
const transactionalRotate = rotateConnection as unknown as (
|
||||
args: Parameters<typeof rotateConnection>[0],
|
||||
tx: typeof TX,
|
||||
) => ReturnType<typeof rotateConnection>;
|
||||
const out = await transactionalRotate(
|
||||
{
|
||||
connectionId: "conn-1",
|
||||
presentedJti: "jti-current",
|
||||
@@ -122,7 +126,7 @@ describe("rotateConnection — happy path", () => {
|
||||
clientId: CONN.clientId,
|
||||
userId: "user-1",
|
||||
},
|
||||
TX as never,
|
||||
TX,
|
||||
);
|
||||
|
||||
expect(out.ok).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user