How can I write react test case for my below code which is part of functional component?

<select id="specialitySelect" onChange={specialityChanged} className="select form-control">
   { =>
      <FormattedMessage id={id}>
         {(id) => {
             return <option value={id}>{id}</option>

I have written below test case, which covers the onChange event but not return option tag

it('should test specialityChanged', () => {
    Object.defineProperty(document, 'getElementById', {
      value: ()=>{return {value:1}},

    const renderedModule = shallow(<SearchProviders langPack={{locale:'en-HK'}} analytics=`enter code here`{{analyticsClick:()=>{}}}/>);
    const specialityChanged = renderedModule.find('#specialitySelect');