|
|
@ -7,8 +7,8 @@ describe('createOpenmeteoClient', () => { |
|
|
|
latitude: 52.28, |
|
|
|
latitude: 52.28, |
|
|
|
longitude: 10.52, |
|
|
|
longitude: 10.52, |
|
|
|
}); |
|
|
|
}); |
|
|
|
expect(result.apparentTemperature).toMatch(/^\d+(\.?\d+)?°C$/); |
|
|
|
expect(result.apparentTemperature).toMatch(/^-?\d+(\.?\d+)?°C$/); |
|
|
|
expect(result.temperature).toMatch(/^\d+(\.?\d+)?°C$/); |
|
|
|
expect(result.temperature).toMatch(/^-?\d+(\.?\d+)?°C$/); |
|
|
|
expect(result.relativeHumidity).toMatch(/^\d+%$/); |
|
|
|
expect(result.relativeHumidity).toMatch(/^\d+%$/); |
|
|
|
|
|
|
|
|
|
|
|
// Just to make sure that the returned weather seems to be reasonable
|
|
|
|
// Just to make sure that the returned weather seems to be reasonable
|
|
|
|