mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 05:07:05 +00:00
improve tests (#2923)
use es6 syntax in all tests, split weather tests, remove callbacks
This commit is contained in:
@@ -4,7 +4,7 @@ const _ = require("lodash");
|
||||
* @param {object} extendedData extra data to add to the default mock data
|
||||
* @returns {string} mocked forecast weather data
|
||||
*/
|
||||
function generateWeatherForecast(extendedData = {}) {
|
||||
const generateWeatherForecast = (extendedData = {}) => {
|
||||
return JSON.stringify(
|
||||
_.merge(
|
||||
{},
|
||||
@@ -110,6 +110,6 @@ function generateWeatherForecast(extendedData = {}) {
|
||||
extendedData
|
||||
)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = generateWeatherForecast;
|
||||
|
Reference in New Issue
Block a user