diff --git a/src/clients/weather/openmeteo.spec.ts b/src/clients/weather/openmeteo.spec.ts index 7b2875d..0c17be6 100644 --- a/src/clients/weather/openmeteo.spec.ts +++ b/src/clients/weather/openmeteo.spec.ts @@ -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