MCPcopy Create free account
hub / github.com/angular/components / setupTableTestApp

Function setupTableTestApp

src/cdk/table/table.spec.ts:47–54  ·  view source on GitHub ↗
(componentType: Type<T>)

Source from the content-addressed store, hash-verified

45 let tableElement: HTMLElement;
46
47 function setupTableTestApp<T>(componentType: Type<T>): ComponentFixture<T> {
48 fixture = TestBed.createComponent(componentType);
49 component = fixture.componentInstance;
50 fixture.detectChanges();
51
52 tableElement = fixture.nativeElement.querySelector('.cdk-table');
53 return fixture;
54 }
55
56 describe('in a typical simple use case', () => {
57 let dataSource: FakeDataSource;

Callers 2

createComponentFunction · 0.70
table.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected