Skip to content

Commit 980fb8d

Browse files
committed
test(rest): the section-i18n strip control asserts the rendered sections only
The anonymous objectSchema keeps a declared lookup field's definition (the strip narrows the sections); the control pins what the strip owns. Claude-Session: https://claude.ai/code/session_01Q9PZ5Pzqcus4woVvTZwWNU Co-authored-by: Claude <noreply@anthropic.com>
1 parent ef0bea4 commit 980fb8d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎packages/rest/src/public-form-section-i18n.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ describe('[#23497] GET /forms/:slug — section headings are localized under Acc
200200
const res = await buildServer(formView()).get('zh-CN');
201201
expect(section(res, 0).label).toBe(ABOUT_ZH);
202202
expect(renderedFields(res)).toEqual([['subject'], ['email'], ['status']]);
203-
expect(res.body.objectSchema.fields.contact_id).toBeUndefined();
204203
});
205204

206205
it('CONTROL: the response shape, its top-level label and `Vary` are unchanged, and the stored view is not mutated', async () => {

0 commit comments

Comments
 (0)