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

Function createComponent

src/material/card/card.spec.ts:6–9  ·  view source on GitHub ↗
(component: Type<T>, providers: Provider[] = [])

Source from the content-addressed store, hash-verified

4
5describe('MatCard', () => {
6 function createComponent<T>(component: Type<T>, providers: Provider[] = []): ComponentFixture<T> {
7 TestBed.configureTestingModule({providers});
8 return TestBed.createComponent<T>(component);
9 }
10
11 it('should default the card to the `raised` appearance', () => {
12 const fixture = createComponent(BasicCard);

Callers 1

card.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected