Skip to content

Commit a70adfc

Browse files
committed
test(objectql): the name-gate GUARD reads the nested-relation refusal's words
Claude-Session: https://claude.ai/code/session_01DEvba2nBuD4tWzfq8r8NFY Co-authored-by: Claude <noreply@anthropic.com>
1 parent 184d3fc commit a70adfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/objectql/src/protocol-explicit-filter-field-gate.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ describe('#7534 — unknown field on the EXPLICIT filter axes (real ObjectQL eng
401401
// descends: the answer is not its INVALID_FIELD about `region`.
402402
const err: any = await find({ where: { owner_id: { region: 'NA' } } }).then(() => null, (e: any) => e);
403403
expect({ code: err?.code, status: err?.status }).toEqual({ code: 'INVALID_FILTER', status: 400 });
404-
expect(err.message).toContain("a nested-relation condition beneath the declared lookup field 'owner_id'");
404+
expect(err.message).toContain("puts a nested-relation condition (keys \"region\") at where.owner_id, beneath the declared lookup field 'owner_id'");
405405
expect(err.field).toBeUndefined();
406406
});
407407

0 commit comments

Comments
 (0)