import { TestBed } from '@angular/core/testing'; import { HomeComponent } from './home'; describe('HomeComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [HomeComponent], }).compileComponents(); }); it('should create the component', () => { const fixture = TestBed.createComponent(HomeComponent); const component = fixture.componentInstance; expect(component).toBeTruthy(); }); it('should render main landmark', async () => { const fixture = TestBed.createComponent(HomeComponent); await fixture.whenStable(); const compiled = fixture.nativeElement as HTMLElement; expect(compiled.querySelector('main')).toBeTruthy(); }); });