Skip to content

Commit 2e447bb

Browse files
committed
test(objectql): the empty-projection suite's where double refuses a combinator it does not implement
Claude-Session: https://claude.ai/code/session_01FEkQ5mbUpy4ebfWUHxAv87 Co-authored-by: Claude <noreply@anthropic.com>
1 parent a446bae commit 2e447bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/objectql/src/engine-empty-projection-refusal.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function makeDriver() {
7171
if (!v.every((arm) => matches(row, arm))) return false;
7272
continue;
7373
}
74+
if (k.startsWith('$')) throw new Error(`driver double does not implement the '${k}' combinator`);
7475
if (v && typeof v === 'object' && '$in' in (v as any)) {
7576
if (!(v as any).$in.map(String).includes(String(row[k]))) return false;
7677
continue;

0 commit comments

Comments
 (0)