@@ -6,7 +6,7 @@ import { renderWithTheme } from '../../test/utils';
66import  {  Select  }  from  './Select' ; 
77import  {  SelectOption ,  SelectRef  }  from  './Select.types' ; 
88
9- const  options : SelectOption [ ]  =  [ 
9+ const  options : SelectOption < number > [ ]  =  [ 
1010 {  label : 'ten' ,  value : 10  } , 
1111 {  label : 'twenty' ,  value : 20  } , 
1212 {  label : 'thirty' ,  value : 30  } 
@@ -65,7 +65,7 @@ describe('<Select />', () => {
6565 } 
6666 } } 
6767 options = { [ 
68-  {  label : 'ten' ,  value : 10  } , 
68+  {  label : 'ten' ,  value : '10'  } , 
6969 {  label : 'none' ,  value : ''  } 
7070 ] } 
7171 /> 
@@ -153,7 +153,7 @@ describe('<Select />', () => {
153153 it ( 'should get selected option from arguments' ,  ( )  =>  { 
154154 const  onChange  =  jest . fn ( ) ; 
155155 const  {  getAllByRole,  getByRole }  =  renderWithTheme ( 
156-  < Select  onChange = { onChange }  value = '0'  options = { options }  /> 
156+  < Select  onChange = { onChange }  value = { 0 }  options = { options }  /> 
157157 ) ; 
158158 fireEvent . mouseDown ( getByRole ( 'button' ) ) ; 
159159 getAllByRole ( 'option' ) [ 1 ] . click ( ) ; 
@@ -331,7 +331,7 @@ describe('<Select />', () => {
331331 describe ( 'prop: readOnly' ,  ( )  =>  { 
332332 it ( 'should not trigger any event with readOnly' ,  ( )  =>  { 
333333 const  {  getByRole,  queryByRole }  =  renderWithTheme ( 
334-  < Select  readOnly  value = '10'  options = { options }  /> 
334+  < Select  readOnly  value = { 10 }  options = { options }  /> 
335335 ) ; 
336336 getByRole ( 'button' ) . focus ( ) ; 
337337 const  focusedButton  =  document . activeElement  as  HTMLElement ; 
@@ -347,7 +347,7 @@ describe('<Select />', () => {
347347 const  {  getByRole }  =  renderWithTheme ( 
348348 < Select 
349349 SelectDisplayProps = { {  'data-test' : 'SelectDisplay'  } } 
350-  value = '10' 
350+  value = { 10 } 
351351 options = { options } 
352352 /> 
353353 ) ; 
@@ -357,7 +357,7 @@ describe('<Select />', () => {
357357
358358 describe ( 'prop: renderValue' ,  ( )  =>  { 
359359 it ( 'should use the prop to render the value' ,  ( )  =>  { 
360-  const  formatDisplay  =  ( x : SelectOption )  => 
360+  const  formatDisplay  =  ( x : SelectOption < number > )  => 
361361 `0b${ Number ( x . value ) . toString ( 2 ) }  ; 
362362 const  {  getByRole }  =  renderWithTheme ( 
363363 < Select 
0 commit comments