ENH - refine native weather presentation

This commit is contained in:
Type
2026-08-08 18:57:56 +02:00
parent 921a481510
commit 897aab9ebb
17 changed files with 140 additions and 192 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ vi.mock('@/utils/nui', () => ({ nuiCall: vi.fn() }))
const rawWeather: RawWeatherSnapshot = {
clock: { day: 5, hour: 17, minute: 20, month: 8, year: 2026 },
condition: 'sunny',
nextCondition: 'clear',
rainLevel: 0,
region: 'los_santos',
windSpeed: 2,
@@ -32,7 +33,7 @@ describe('weather store', () => {
expect(nuiCall).toHaveBeenCalledWith('weather:get')
expect(weather.forecast?.condition).toBe('sunny')
expect(weather.forecast?.hourly).toHaveLength(24)
expect(weather.forecast?.hourly).toHaveLength(6)
expect(weather.error).toBeNull()
})