Skip to content

Commit 9a67cf4

Browse files
committed
test(core): spell the formula pin's field key so the error-code gate reads it as field-addressed
Claude-Session: https://claude.ai/code/session_01QK6pdbxKZiHdFApL8RYVh9 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 745620f commit 9a67cf4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/core/src/utils/import-runner-reference-title.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ describe('[#24981] import resolves a lookup cell by the target object\'s stored
127127
expect(getMetaItem.mock.calls.map(([r]) => r.name)).toEqual(['xt_person']);
128128
});
129129

130-
for (const [cell, object, field, title] of [
130+
for (const [cell, object, column, title] of [
131131
['John Smith', 'xt_contact', 'contact', 'full_name'],
132132
['Acme (EMEA)', 'xt_account', 'account', 'display_title'],
133133
] as const) {
134134
it(`a formula title (${object}.${title}) is never asked by where: '${cell}' still answers reference_not_found`, async () => {
135135
const { p, findData, refusals } = protocol();
136-
const summary = await run(p, [{ name: 'a', [field]: cell }]);
137-
expect(summary.results.map(verdict)).toEqual([{ ok: false, code: 'reference_not_found', field }]);
136+
const summary = await run(p, [{ name: 'a', [column]: cell }]);
137+
expect(summary.results.map(verdict)).toEqual([{ ok: false, code: 'reference_not_found', field: column }]);
138138
const asked = askedOf(findData, object);
139139
expect(asked).not.toContain(title);
140140
// The fixed fallback keys are unchanged; only a member the target

0 commit comments

Comments
 (0)