import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; import {CardComponent} from './card.component'; describe('CardComponent', () => { let component: CardComponent; let fixture: ComponentFixture; beforeEach( waitForAsync(() => { void TestBed.configureTestingModule({ declarations: [CardComponent], }).compileComponents(); }) ); beforeEach(() => { fixture = TestBed.createComponent(CardComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { void expect(component).toBeTruthy(); }); });