reactjs - simulate for onClick not working in enzyme -


this cancel button

<div classname="cancelfilebtn" onclick={this.props.cancelfilesending}> 

i need simulate click,i tried following test

wrapper.find('.cancelfilebtn').simulate('click'); 

but click function still undefined...did miss else? , helpful if can mention changes if exist in simulating

<sendmessagebutton onclick={this.props.handleclicksendmessage} loadingfile={this.props.loadingfile}/> 


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -