(component: Type<T>, providers: Provider[] = [])
| 4 | |
| 5 | describe('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); |