title: UNIT Testing document.getElementByID click in angular js using jasmine
body: <p>I want to do unit testing for DOM manipulation. Here is my scenario. I triggered the form reset by triggering the Click action of button using it's ID</p>
  
  <pre><code>document.getElementById('edit-reset').click();
  </code></pre>
  
  <p>I tried to perform unit testing, this is my try but not sure whether it's correct</p>
  
  <pre><code>var DOM = document.getElementById('edit-reset');
  spyOn(document, 'getElementById').and.returnValue(true);
  DOM.click();
  expect(document.getElementById).toHaveBeenCalledWith('edit-reset');
  </code></pre>
  
  <p>Using jasmine and karma for UNIT testing 
  Application is built on IONIC - Angular JS.</p>
  
  <p>Help Appreciated ,How we can do unit testing for the above code in angularjs using jasmine?</p>
  
  <p>Thanks!</p>