title: How to write a jasmine unit test case to test the event handlers in angularjs
body: <p>I am currently writing a jasmine unit test case to test the button's click event. I have written the following test cases for modal popup, please find my plnkr <a href="http://plnkr.co/edit/FuYXaKkiQ3tNC3Vu1AL1?p=info" rel="nofollow">here</a>. I have a button called Add. If the user clicks the button a modal popup opens. So I want to write a test case to find whether the modal is displayed when the user clicks the add button. How do I do it?
  Thanks,
  Varun Krishna. P</p>