title: Can't get test coverage for function
body: <p>I need help with getting code coverage for the following function. I'm not sure how to get into the code highlighted below</p>
  
  <p><a href="https://i.stack.imgur.com/2ZuRL.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <pre><code> submitContactForm(): void {
   const contactData: ContactData = {
    'name': this.name.value,
    'email': this.email.value,
    'subject': this.subject.value,
    'description': this.description.value,
    'userId': null,
    'siteSource': this.authService.getSiteSource()
  };
  
  ***this.xyzService.submitQuery(contactData).subscribe(
    resp =&gt; {
      console.log('Contact Us got a positive response');
      console.log(resp);
      this.alertService.success('Success', 'Your message has been sent successfully. We will reply to you as soon as possible');
    },
    err =&gt; {
      this.alertService.showAlert(err);
      console.log('Contact Us got a ERROR response');
      console.log(err);
    }***
  );
  </code></pre>
  
  <p>}</p>