Skip to content

Commit 1e98001

Browse files
committed
test(plugin-security): type the control read's query options
Claude-Session: https://claude.ai/code/session_012dn2AdqWnb3ndnEacKvJvF Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9c5f265 commit 1e98001

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/plugins/plugin-security/src/grant-holder-membership-refusal.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ describe('a refused grant holder the caller cannot read is answered as a holder
527527
it('CONTROL: the caller reads its own sys_user row and never the holder, which exists in two of the stores', async () => {
528528
for (const store of STORES) {
529529
const h = await bootWith(store);
530-
const seen = await h.engine.find('sys_user', { where: { id: { $in: ['u_admin_a', HOLDER] } }, context: OWN_ROW_ADMIN_A } as any);
531-
expect((seen as any[]).map((r) => r.id), store).toEqual(['u_admin_a']);
530+
const seen = await h.engine.find('sys_user', { where: { id: { $in: ['u_admin_a', HOLDER] } }, context: OWN_ROW_ADMIN_A });
531+
expect(seen.map((r) => r.id), store).toEqual(['u_admin_a']);
532532
expect(await rowsOf(h, 'sys_user', { id: HOLDER }), store).toHaveLength(store === 'no such user' ? 0 : 1);
533533
expect(await rowsOf(h, 'sys_member', { user_id: HOLDER }), store).toHaveLength(store === 'no such user' ? 0 : 1);
534534
}

0 commit comments

Comments
 (0)