|
1 |
| -import { Component, OnInit, ElementRef, Type, DebugElement } from '@angular/core'; |
| 1 | +import { Component, DebugElement, ElementRef, OnInit, Type } from '@angular/core'; |
| 2 | +import { ComponentFixture, TestBed } from '@angular/core/testing'; |
2 | 3 | import { By } from '@angular/platform-browser';
|
3 |
| -import { NoopAnimationsModule, BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
4 |
| -import { TestBed, ComponentFixture } from '@angular/core/testing'; |
5 |
| -import { getQueriesForElement, prettyDOM, fireEvent, FireObject, FireFunction } from '@testing-library/dom'; |
6 |
| -import { RenderResult, RenderOptions } from './models'; |
7 |
| -import { createType, createSelectOptions } from './user-events'; |
| 4 | +import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations'; |
| 5 | +import { fireEvent, FireFunction, FireObject, getQueriesForElement, prettyDOM } from '@testing-library/dom'; |
| 6 | +import { RenderOptions, RenderResult } from './models'; |
| 7 | +import { createSelectOptions, createType } from './user-events'; |
8 | 8 |
|
9 | 9 | @Component({ selector: 'wrapper-component', template: '' })
|
10 | 10 | class WrapperComponent implements OnInit {
|
@@ -84,6 +84,7 @@ export async function render<T>(
|
84 | 84 | fixture,
|
85 | 85 | container: fixture.nativeElement,
|
86 | 86 | debug: (element = fixture.nativeElement) => console.log(prettyDOM(element)),
|
| 87 | + detectChanges: () => fixture.detectChanges(), |
87 | 88 | ...getQueriesForElement(fixture.nativeElement, queries),
|
88 | 89 | ...eventsWithDetectChanges,
|
89 | 90 | type: createType(eventsWithDetectChanges),
|
|
0 commit comments