File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments