title: Spec has no expectation console error although expect is present
body: <p>I have the spec that has to expect still it says there are no expectations...</p>
  <pre><code>it('should click on yes button of technician and check save&amp;continue functionality', () =&gt; {
      const saveAndContinue = fixture.debugElement.query(By.css(saveContinueBtn)).nativeElement;
      saveAndContinue.click();
      fixture.detectChanges();
      fixture.whenStable().then(() =&gt; {
          const spy = spyOn(component,'isSaveAndContinueClicked').and.callThrough();
          expect(component).toBeDefined();
          expect(spy);
          component.isSaveAndContinueClicked();
          expect(component.isSaveAndContinueClicked).toHaveBeenCalled();
          const yesbutton = fixture.debugElement.query(By.css('#yesButton')).nativeElement;
          expect(yesbutton).toBeTruthy();
          fixture.detectChanges();
          fixture.whenStable().then(() =&gt; {
              spyOn(component, 'change').and.callThrough();
              spyOn(component, 'change2').and.callThrough();
              yesbutton.click();
              expect(component.change).toHaveBeenCalled();
              expect(component.change2).toHaveBeenCalled();
          });
     });
  });
  </code></pre>
  <p>It throws the error as spec testComponent should click on yes button of the technician and check save&amp;continue functionality has no expectations...
  Can you please suggest...</p>