Skip to content

Commit e5738c2

Browse files
committed
test(plugin-security): type the rig's engine options instead of erasing them
Claude-Session: https://claude.ai/code/session_017xRBcT1w3zpekijraHJE4f Co-authored-by: Claude <noreply@anthropic.com>
1 parent bab0059 commit e5738c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/plugins/plugin-security/src/delegated-admin-own-name-set.posture.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ describe("[ADR-0090 D12] a delegated answer about a user the caller cannot read
869869
it('ground truth: the delegate reads the subject exactly in the states where it is a user the delegate may read', async () => {
870870
for (const state of [...STATES, CONTROL] as State[]) {
871871
const h = await bootWith(posture, state);
872-
const rows = await h.engine.find('sys_user', { where: { id: SUBJECT }, fields: ['id'], context: delegateFor(state) } as any);
872+
const rows = await h.engine.find('sys_user', { where: { id: SUBJECT }, fields: ['id'], context: delegateFor(state) });
873873
const reads = (Array.isArray(rows) ? rows : []).some((r: any) => r.id === SUBJECT);
874874
expect(reads, state).toBe(state !== 'an id naming no user' && state !== UNREADABLE_INSIDE);
875875
}
@@ -903,7 +903,7 @@ describe("[ADR-0090 D12] a delegated answer about a user the caller cannot read
903903
['organization administrator', delegateCtx('u_org_admin', 'organization_admin')],
904904
] as const) {
905905
const h = await bootWith(posture, UNREADABLE_INSIDE);
906-
const removed = await answerOf(() => h.engine.delete('sys_user_permission_set', { where: { id: 'g_subject' }, context } as any));
906+
const removed = await answerOf(() => h.engine.delete('sys_user_permission_set', { where: { id: 'g_subject' }, context }));
907907
expect(removed, who).toEqual({ status: 200 });
908908
const left = await h.engine.find('sys_user_permission_set', { where: { id: 'g_subject' }, context: SYS });
909909
expect(Array.isArray(left) ? left : [], who).toEqual([]);

0 commit comments

Comments
 (0)