title: Angular Unit Testing : Karma-Jasmine : ('onChange', (changeEvent: MatRadioChange) : Argument of type void is not assignable to parameter of type
body: <p>Hi was working on one of the tests for a call that I am using to emit the event:</p>
  <pre><code>onChange(eventName: MatRadioChange): void {
      this.eventName.emit(eventName.value);
    }
  </code></pre>
  <p>The test for the same is:</p>
  <pre><code>describe('onChange', (eventName: MatRadioChange) =&gt; {
      it('should emit true to open calendar modal for mobile view', () =&gt; {
        spyOn(component.eventName, 'emit');
        component.onChange(eventName.value);
        expect(component.eventName.emit).toHaveBeenCalled();
      });
    });
  </code></pre>
  <p>I keep getting the error:</p>
  <pre><code>Argument of type '(changeEvent: MatRadioChange) =&gt; void' is not assignable to parameter of type '() =&gt; void'.
  
  describe('onChange', (changeEvent: MatRadioChange) =&gt; {
  </code></pre>
  <p>Any help will be great!</p>