mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
test(01-01): preserve explicit transaction contract
- keep the red transaction-client call aligned with the planned signature - isolate the concurrent documentation commit from MCP test content
This commit is contained in:
1 parent
390c718b74
commit
51f5f43957
1 file changed
+2
-6
@@ -114,11 +114,7 @@ describe("rotateConnection — happy path", () => {
|
||||
it("uses the supplied transaction client for the entire rotation", async () => {
|
||||
TX.mcpOAuthConnection.findUnique.mockResolvedValue({ ...CONN });
|
||||
|
||||
const transactionalRotate = rotateConnection as unknown as (
|
||||
args: Parameters<typeof rotateConnection>[0],
|
||||
tx: typeof TX,
|
||||
) => ReturnType<typeof rotateConnection>;
|
||||
const out = await transactionalRotate(
|
||||
const out = await rotateConnection(
|
||||
{
|
||||
connectionId: "conn-1",
|
||||
presentedJti: "jti-current",
|
||||
@@ -126,7 +122,7 @@ describe("rotateConnection — happy path", () => {
|
||||
clientId: CONN.clientId,
|
||||
userId: "user-1",
|
||||
},
|
||||
TX,
|
||||
TX as never,
|
||||
);
|
||||
|
||||
expect(out.ok).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user