From 4f2b7efb9824e86080231320f9e954d8e0ed8ca5 Mon Sep 17 00:00:00 2001 From: Inga Date: Thu, 26 Oct 2023 18:46:00 +0000 Subject: [PATCH] allow below-zero temperatures in openmeteo tests --- src/clients/weather/openmeteo.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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