title: How to write Jasmine test to cover event.target.click
body: <p>I would like to write a Jasmine test spec for my below method.</p>
  <p>My Component Method</p>
  <pre><code>methodName(event): void {
     event.preventDefault();
     event.target.click();
  }
  </code></pre>
  <p>This is what i have written but don't know what should i write to cover event.target.click</p>
  <pre><code>it('should prevent default', () =&gt; {
     const event = jasmine.createSpyObj('event', ['preventDefault']);
     component.methodName(event);
     expect(event.preventDefault).toHaveBeenCalled();
  });
  </code></pre>
  <p>Thanks</p>