Use light-drizzle icon for WMO 61 (light rain) and 80 (light showers)
Both codes now render 🌦️ instead of 🌧️ in the CODE_MAP. Updated the weather-codes tests accordingly.
This commit is contained in:
parent
ff73e58d31
commit
7e06c17bfa
4
dist/index.html
vendored
4
dist/index.html
vendored
@ -5884,7 +5884,7 @@ var CODE_MAP = {
|
|||||||
desc: "Dense freezing drizzle"
|
desc: "Dense freezing drizzle"
|
||||||
},
|
},
|
||||||
61: {
|
61: {
|
||||||
icon: "🌧️",
|
icon: "🌦️",
|
||||||
label: "Light Rain",
|
label: "Light Rain",
|
||||||
desc: "Slight rain"
|
desc: "Slight rain"
|
||||||
},
|
},
|
||||||
@ -5929,7 +5929,7 @@ var CODE_MAP = {
|
|||||||
desc: "Snow grains"
|
desc: "Snow grains"
|
||||||
},
|
},
|
||||||
80: {
|
80: {
|
||||||
icon: "🌧️",
|
icon: "🌦️",
|
||||||
label: "Light Showers",
|
label: "Light Showers",
|
||||||
desc: "Slight rain showers"
|
desc: "Slight rain showers"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -15,7 +15,7 @@ const CODE_MAP = {
|
|||||||
55: { icon: '🌧️', label: 'Heavy Drizzle',desc: 'Dense drizzle' },
|
55: { icon: '🌧️', label: 'Heavy Drizzle',desc: 'Dense drizzle' },
|
||||||
56: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Light freezing drizzle' },
|
56: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Light freezing drizzle' },
|
||||||
57: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Dense freezing drizzle' },
|
57: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Dense freezing drizzle' },
|
||||||
61: { icon: '🌧️', label: 'Light Rain', desc: 'Slight rain' },
|
61: { icon: '🌦️', label: 'Light Rain', desc: 'Slight rain' },
|
||||||
63: { icon: '🌧️', label: 'Rain', desc: 'Moderate rain' },
|
63: { icon: '🌧️', label: 'Rain', desc: 'Moderate rain' },
|
||||||
65: { icon: '🌧️', label: 'Heavy Rain', desc: 'Heavy rain' },
|
65: { icon: '🌧️', label: 'Heavy Rain', desc: 'Heavy rain' },
|
||||||
66: { icon: '🌧️', label: 'Freezing Rain',desc: 'Light freezing rain' },
|
66: { icon: '🌧️', label: 'Freezing Rain',desc: 'Light freezing rain' },
|
||||||
@ -24,7 +24,7 @@ const CODE_MAP = {
|
|||||||
73: { icon: '🌨️', label: 'Snow', desc: 'Moderate snowfall' },
|
73: { icon: '🌨️', label: 'Snow', desc: 'Moderate snowfall' },
|
||||||
75: { icon: '❄️', label: 'Heavy Snow', desc: 'Heavy snowfall' },
|
75: { icon: '❄️', label: 'Heavy Snow', desc: 'Heavy snowfall' },
|
||||||
77: { icon: '❄️', label: 'Snow Grains', desc: 'Snow grains' },
|
77: { icon: '❄️', label: 'Snow Grains', desc: 'Snow grains' },
|
||||||
80: { icon: '🌧️', label: 'Light Showers', desc: 'Slight rain showers' },
|
80: { icon: '🌦️', label: 'Light Showers', desc: 'Slight rain showers' },
|
||||||
81: { icon: '🌧️', label: 'Showers', desc: 'Moderate rain showers' },
|
81: { icon: '🌧️', label: 'Showers', desc: 'Moderate rain showers' },
|
||||||
82: { icon: '⛈️', label: 'Heavy Showers', desc: 'Violent rain showers' },
|
82: { icon: '⛈️', label: 'Heavy Showers', desc: 'Violent rain showers' },
|
||||||
85: { icon: '🌨️', label: 'Snow Showers', desc: 'Slight snow showers' },
|
85: { icon: '🌨️', label: 'Snow Showers', desc: 'Slight snow showers' },
|
||||||
|
|||||||
@ -40,7 +40,7 @@ describe('weather-codes', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('handles rain codes', () => {
|
it('handles rain codes', () => {
|
||||||
expect(getWeatherInfo(61).icon).toBe('🌧️')
|
expect(getWeatherInfo(61).icon).toBe('🌦️')
|
||||||
expect(getWeatherInfo(63).icon).toBe('🌧️')
|
expect(getWeatherInfo(63).icon).toBe('🌧️')
|
||||||
expect(getWeatherInfo(65).icon).toBe('🌧️')
|
expect(getWeatherInfo(65).icon).toBe('🌧️')
|
||||||
})
|
})
|
||||||
@ -52,7 +52,7 @@ describe('weather-codes', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('handles showers', () => {
|
it('handles showers', () => {
|
||||||
expect(getWeatherInfo(80).icon).toBe('🌧️')
|
expect(getWeatherInfo(80).icon).toBe('🌦️')
|
||||||
expect(getWeatherInfo(81).icon).toBe('🌧️')
|
expect(getWeatherInfo(81).icon).toBe('🌧️')
|
||||||
expect(getWeatherInfo(82).icon).toBe('⛈️')
|
expect(getWeatherInfo(82).icon).toBe('⛈️')
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user