Skip to content

Commit 06a2a6b

Browse files
author
veeck
committed
fix typos
1 parent fad8bba commit 06a2a6b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/default/weather/providers/openmeteo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WeatherProvider.register("openmeteo", {
1313

1414
/*
1515
* Set the name of the provider.
16-
* Not strictly required, but helps for debugging.
16+
* Not strictly required but helps for debugging.
1717
*/
1818
providerName: "Open-Meteo",
1919

@@ -348,7 +348,7 @@ WeatherProvider.register("openmeteo", {
348348
generateWeatherDayFromCurrentWeather (weather) {
349349

350350
/**
351-
* Since some units comes from API response "splitted" into daily, hourly and current_weather
351+
* Since some units come from API response "splitted" into daily, hourly and current_weather
352352
* every time you request it, you have to ensure to get the data from the right place every time.
353353
* For the current weather case, the response have the following structure (after transposing):
354354
* ```

modules/default/weather/weatherutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const WeatherUtils = {
5353
/**
5454
* Convert temp (from degrees C) into imperial or metric unit depending on
5555
* your config
56-
* @param {number} tempInC the temperature in celsius you want to convert
56+
* @param {number} tempInC the temperature in Celsius you want to convert
5757
* @param {string} unit can be 'imperial' or 'metric'
5858
* @returns {number} the converted temperature
5959
*/

tests/unit/modules/default/weather/weather_utils_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const weather = require("../../../../../modules/default/weather/weatherutils");
22
const WeatherUtils = require("../../../../../modules/default/weather/weatherutils");
33

44
describe("Weather utils tests", () => {
5-
describe("windspeed conversion to imperial", () => {
5+
describe("temperature conversion to imperial", () => {
66
it("should convert temp correctly from Celsius to Fahrenheit", () => {
77
expect(Math.round(WeatherUtils.convertTemp(10, "imperial"))).toBe(50);
88
});

0 commit comments

Comments
 (0)