Skip to content

Commit 0d0b3b0

Browse files
hotlongclaude
andcommitted
test(plugin-detail): type the host's group-reference sections in the placement pin
Claude-Session: https://claude.ai/code/session_cdb7a717def74e719988f089fbaa18ff Co-authored-by: Claude <noreply@anthropic.com>
1 parent ce224d9 commit 0d0b3b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ui/packages/plugin-detail/src/synth/__tests__/buildDefaultPageSchema.bodyTables-27055.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ describe('a field group places a body table at its position (objectstack#27069,
156156

157157
it('the host-passed sections place the same way (the `{ group }` sections RecordDetailView passes)', () => {
158158
const def = placed('quote_line_item');
159-
const sections = [{ group: 'basic' }, { group: 'terms' }, { group: 'notes' }];
159+
// The `{ group }` reference form, as the host writes it (the options type
160+
// names the enumerated form only).
161+
const sections: Array<Record<string, unknown>> = [{ group: 'basic' }, { group: 'terms' }, { group: 'notes' }];
160162
expect(shape(items(buildDefaultTabs(def, { sections, related: [LINES] }))[0].children)).toEqual([
161163
'details(basic,terms)',
162164
'table(quote_line_item)',

0 commit comments

Comments
 (0)