Skip to content

Commit 75562d0

Browse files
committed
test(objectql): the auto-default search set keeps the scalar status clause beside the membership one
Claude-Session: https://claude.ai/code/session_01Ujdtvqs7ree7WyQmEDwEnG Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8c0212b commit 75562d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/objectql/src/search-filter.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ describe('expandSearchToFilter', () => {
206206
});
207207

208208
it('a label term: one $contains per matched option value, never $in', () => {
209+
// The auto-default set: the scalar `status` beside it keeps its fallback.
209210
expect(expandSearchToFilter('important', { fields: taskFields })).toEqual({ $or: [
210211
{ subject: { $icontains: 'important' } },
211212
{ tags: { $contains: 'important' } },
213+
{ status: { $icontains: 'important' } },
212214
] });
213215
// Two labels match → two membership clauses in the same $or (any-of).
214216
expect(expandSearchToFilter('QUICK', { fields: taskFields, searchableFields: ['tags'] })).toEqual({ $or: [

0 commit comments

Comments
 (0)