Skip to content

Commit 4525303

Browse files
committed
test(objectql): type the blank-door test's caller payload and unused stub param
Claude-Session: https://claude.ai/code/session_01Bvd69VPa6puiNzzPUroDBx Co-authored-by: Claude <noreply@anthropic.com>
1 parent 094bbff commit 4525303

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/objectql/src/engine-blank-typed-value-door.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function makeStubDriver() {
7474
rows.set(row.id as string, row);
7575
return row;
7676
},
77-
async bulkCreate(o: string, list: Record<string, unknown>[]) {
77+
async bulkCreate(_o: string, list: Record<string, unknown>[]) {
7878
calls.push({ fn: 'bulkCreate', data: { rows: list.map((r) => ({ ...r })) } });
7979
const out: Record<string, unknown>[] = [];
8080
for (const r of list) {
@@ -156,7 +156,7 @@ describe('engine write doors: a blank on a non-string-typed column reaches the d
156156
const last = (fn: string) => [...stub.calls].reverse().find((c) => c.fn === fn)!.data;
157157

158158
it.each([[''], [' ']])('insert, one row: %j → null; the string-stored controls keep their blank', async (blank) => {
159-
const payload = { id: 'a', ...blankTyped(blank), ...STR_BLANK };
159+
const payload: Record<string, unknown> = { id: 'a', ...blankTyped(blank), ...STR_BLANK };
160160
await engine.insert('blank_door', payload);
161161
const sent = last('create');
162162
expectTypedNull(sent);

0 commit comments

Comments
 (0)