title: Test for click event using Jasmine test suite
body: <p>I am using <code>jasmine</code> to test my application and right now no button exists in my code<br>
   but i want to write a test in which i can check that whether a click event is fired or not.<br>
   You can simply think that i want to fire click event without button . </p>
  
  <p>Here is what i did </p>
  
  <pre><code> scenario('checking that click event is triggered or not', function () {
  
      given('Sigin form is filled', function () {
  
      });
      when('signin button is clicked ', function () {
          spyOn($, "click");
          $.click();
  
      });
      then('Should click event is fired or not" ', function () {
          expect($.click).toHaveBeenCalled();
      });
  });
  </code></pre>
  
  <p>Thanks in advance .</p>