Skip to content

Commit 80e07fa

Browse files
committed
wip: type the pin's opened request
Claude-Session: https://claude.ai/code/session_01HopxxRtFE6z3z91wUD54tp Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4eeb469 commit 80e07fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/plugins/plugin-approvals/src/approval-service.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,12 +1592,12 @@ describe('ApprovalService (node era)', () => {
15921592

15931593
/** Open on `slate` and hand back the request id, with the opening's notices cleared. */
15941594
async function openOn(slate: string[]): Promise<string> {
1595-
const req = await svc.openNodeRequest(openInput(slate), CTX);
1595+
const { id } = (await svc.openNodeRequest(openInput(slate), CTX)) as { id: string };
15961596
// The request takes the acting context's organization here (no schema on
15971597
// the double), and every screen below is judged against it.
1598-
expect(engine._tables['sys_approval_request'].find(r => r.id === req.id)?.organization_id).toBe('t1');
1598+
expect(engine._tables['sys_approval_request'].find(r => r.id === id)?.organization_id).toBe('t1');
15991599
emitted.splice(0);
1600-
return req.id;
1600+
return id;
16011601
}
16021602

16031603
async function expectRefusedUnchanged(id: string, move: Promise<unknown>, message: RegExp, slate: string[]) {

0 commit comments

Comments
 (0)