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

Function createComponent

src/material/paginator/paginator.spec.ts:18–26  ·  view source on GitHub ↗
(type: Type<T>, providers: Provider[] = [])

Source from the content-addressed store, hash-verified

16
17describe('MatPaginator', () => {
18 function createComponent<T>(type: Type<T>, providers: Provider[] = []): ComponentFixture<T> {
19 TestBed.configureTestingModule({
20 providers: [MatPaginatorIntl, ...providers],
21 });
22
23 const fixture = TestBed.createComponent(type);
24 fixture.detectChanges();
25 return fixture;
26 }
27
28 describe('with the default internationalization provider', () => {
29 describe('showing the right range text', () => {

Callers 1

paginator.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected