Css inspired by: https://dribbble.com/shots/1999409-Weather-widgets Responsive: manually
None
None - Right now this working in payed api. If will be for free (in past was for free) then I will write this function in service.
getDetailsByCoord(lat: number, lon: number): Observable<CityWeather> {
return this.http.get<CityWeather>(`${environment.apiUrl}oneCall?lat=${lat}&lon=${lon}&exclude=hourly&appId=${environment.apiKey}`);
}
check by: npm run test
I testing not mockup response because this is external API. If something will change test can fast help what is change and where is problem.
In normal service (in our backend api) i mockup response.
For automation testing I rly dont have time this time. On F2F call i can show you how I write testing in the current project (Cypress)