File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,6 @@ describe('kit/utils/common', () => {
9292 viewSpec : { addButtonPosition : 'down' } ,
9393 } ) ;
9494
95- expect ( prepareSpec ( { viewSpec : { themeLabel : 'WARNING' } } as any ) ) . toMatchObject ( {
96- viewSpec : { textContentParams : { themeLabel : 'warning' } } ,
97- } ) ;
98-
9995 expect ( prepareSpec ( { viewSpec : { oneOfParams : { toggler : 'SELECT' } } } as any ) ) . toMatchObject ( {
10096 viewSpec : { oneOfParams : { toggler : 'select' } } ,
10197 } ) ;
Original file line number Diff line number Diff line change @@ -106,13 +106,6 @@ export const prepareSpec = <Type extends Spec>(
106106 result . viewSpec . addButtonPosition = result . viewSpec . addButtonPosition . toLowerCase ( ) ;
107107 }
108108
109- if ( isString ( result . viewSpec ?. themeLabel ) ) {
110- result . viewSpec . textContentParams = {
111- ...result . viewSpec . textContentParams ,
112- themeLabel : result . viewSpec . themeLabel . toLowerCase ( ) ,
113- } ;
114- }
115-
116109 if ( isString ( result . viewSpec ?. oneOfParams ?. toggler ) ) {
117110 result . viewSpec . oneOfParams . toggler = result . viewSpec . oneOfParams . toggler . toLowerCase ( ) ;
118111 }
You can’t perform that action at this time.
0 commit comments