Skip to content

Commit 4e9e098

Browse files
committed
test(objectql, service-storage): type the engine options the new pins pass
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvynRbCtMndW8EHNGc
1 parent 78b1698 commit 4e9e098

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/objectql/src/engine-unreadable-reference-target.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ describe('a reference a service verb vouches for on its own write: that one valu
512512
const vouched = (id: string, field = 'duty', object = ITEM, base: Record<string, unknown> = ALICE) =>
513513
vouchForReference({ ...base }, { object, field, id });
514514
const insert = (object: string, payload: Record<string, unknown>, context: Record<string, unknown>) =>
515-
engine.insert(object, { title: 'new', ...payload }, { context } as any);
515+
engine.insert(object, { title: 'new', ...payload }, { context });
516516
const items = (object = ITEM) => [...storeFor(object).values()];
517517

518518
it('the vouched value lands although the caller cannot read it; its existence is still probed, elevated', async () => {

‎packages/services/service-storage/src/file-attachment-service.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ describe('attachFileAs for a member who cannot read sys_file: the verb vouches f
561561
it('precondition: the member cannot read sys_file, not even the file they own', async () => {
562562
const { ql } = await bootMember();
563563
await seedOwnFile(ql);
564-
const err = await refusalOf(ql.findOne('sys_file', { where: { id: 'file_alice' }, context: ALICE } as any));
564+
const err = await refusalOf(ql.findOne('sys_file', { where: { id: 'file_alice' }, context: ALICE }));
565565
expect([err.code, err.status]).toEqual(['PERMISSION_DENIED', 403]);
566566
});
567567

@@ -612,7 +612,7 @@ describe('attachFileAs for a member who cannot read sys_file: the verb vouches f
612612
ql.insert(
613613
'sys_attachment',
614614
{ parent_object: 'att_case', parent_id: 'case_a', file_id: fileId, file_name: 'direct.eml' },
615-
{ context: ALICE } as any,
615+
{ context: ALICE },
616616
),
617617
);
618618
const envelope = resolveThrownHttpError(err);

0 commit comments

Comments
 (0)