@@ -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