Skip to content

Commit 0da7ac6

Browse files
committed
test(mcp): update button component extraction expectations
1 parent f3c21a7 commit 0da7ac6

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

packages/mcp/__tests__/extract-components.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ describe('extractComponents', () => {
2222
expect(button!.category).toBe('Foundation');
2323
expect(button!.description).toBe('To trigger an operation.');
2424

25-
const btnType = button!.props.find((p) => p.name === 'btnType');
26-
expect(btnType).toBeDefined();
27-
expect(btnType!.required).toBe(false);
28-
expect(btnType!.type).toContain('primary');
25+
const variant = button!.props.find((p) => p.name === 'variant');
26+
expect(variant).toBeDefined();
27+
expect(variant!.required).toBe(false);
28+
expect(variant!.type).toContain('outline');
29+
30+
const color = button!.props.find((p) => p.name === 'color');
31+
expect(color).toBeDefined();
32+
expect(color!.required).toBe(false);
33+
expect(color!.type).toContain('primary');
2934

3035
const style = button!.props.find((p) => p.name === 'style');
3136
expect(style).toBeDefined();

0 commit comments

Comments
 (0)