Created
July 12, 2023 15:15
-
-
Save orodrigogo/7e6b6d2dbc673ac77f0960fffaad0ff9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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