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