allow below-zero temperatures in openmeteo tests

main
Inga 🏳‍🌈 1 year ago
parent e163be6cf0
commit 4f2b7efb98
  1. 4
      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

Loading…
Cancel
Save