Skip to content

Commit a226320

Browse files
committed
test(objectql): the wrapHandler pin's context literal names ql, as HookContext requires
Claude-Session: https://claude.ai/code/session_01UxK7vXeLCgYoxSXaHuQA1Y Co-authored-by: Claude <noreply@anthropic.com>
1 parent 043baeb commit a226320

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/objectql/src/hook-binder-wrap-handler.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { bindHooksToEngine } from './hook-binder.js';
1717
import type { Hook, HookContext } from '@objectstack/spec/data';
1818

1919
const ctx = (): HookContext =>
20-
({ object: 'account', event: 'beforeInsert', input: { data: {} } }) as HookContext;
20+
({ object: 'account', event: 'beforeInsert', input: { data: {} }, ql: undefined }) as HookContext;
2121

2222
/** Marks each context the wrapped handler is called with, and records which hook it wrapped. */
2323
function marking(wrappedFor: string[]) {

0 commit comments

Comments
 (0)