title: Angular test with `async` causing Jasmine timeout?
body: <p>I recently upgraded a project to Angular 6, and now tests that were working fine before are now failing. Here's an example of one of those tests:</p>
  
  <pre><code>  beforeEach(
      async(() =&gt; {
        TestBed.configureTestingModule({
          declarations: [CampaignsDetailScheduleComponent],
          imports: [
            SomeModule,
            ReactiveFormsModule,
            TranslateModule.forRoot({
              loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
            }),
            StoreModule.forRoot({})
          ],
          providers: [{ provide: ConfigService, useValue: ConfigServiceMock }],
          schemas: [NO_ERRORS_SCHEMA]
        });
        fixture = TestBed.createComponent(CampaignsDetailScheduleComponent);
        comp = fixture.componentInstance; // Component test instance
        _store = fixture.debugElement.injector.get&lt;Store&lt;State&gt;&gt;(Store);
        comp.campaignModel$ = of(CampaignMockData);
        fixture.detectChanges();
      })
    );
  
  it(
      'close edit schedule modal',
      async(() =&gt; {
        spyOn(_store, 'dispatch');
        comp.onClose();
        const args = new ShowHideEditScheduleModal(false);
        expect(_store.dispatch).toHaveBeenCalledWith(args);
      })
    );
  </code></pre>
  
  <p>Pre-Angular 6, this test passed with no issues. But now under Angular 6, I get the error:</p>
  
  <pre><code>Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.--Pendng async tasks are: [type: macroTask, source: setInterval, args: {handleId:4072,isPeriodic:true,delay:0,args:[object Arguments],__creationTrace__:[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]},type: macroTask, source: setInterval, args: {handleId:4075,isPeriodic:true,delay:0,args:[object Arguments],__creationTrace__:[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]}]
  </code></pre>
  
  <p>Does anyone have any idea what might be going on?</p>