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