Skip to content

Instantly share code, notes, and snippets.

@orodrigogo
Created July 12, 2023 15:15
Show Gist options
  • Save orodrigogo/7e6b6d2dbc673ac77f0960fffaad0ff9 to your computer and use it in GitHub Desktop.
Save orodrigogo/7e6b6d2dbc673ac77f0960fffaad0ff9 to your computer and use it in GitHub Desktop.
import { WeatherAPIResponseProps } from "@services/getWeatherByCityService";
const currentDay = new Date();
const nextDay = new Date();
nextDay.setDate(currentDay.getDate() + 1)
export const mockWeatherAPIResponse: WeatherAPIResponseProps = {
list: [
{
pop: 0.5,
main: {
temp: 34,
temp_min: 32,
temp_max: 36,
feels_like: 35,
humidity: 0.5,
temp_kf: 1,
},
wind: {
speed: 15,
},
weather: [
{
description: 'Céu limpo',
main: 'Clear',
}
],
dt_txt: nextDay.toDateString()
},
{
pop: 0.5,
main: {
temp: 34,
temp_min: 32,
temp_max: 36,
feels_like: 35,
humidity: 0.5,
temp_kf: 1,
},
wind: {
speed: 15,
},
weather: [
{
description: 'Céu limpo',
main: 'Clear',
}
],
dt_txt: nextDay.toDateString()
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment