mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 20:22:53 +00:00
Run linter over all files again
This commit is contained in:
parent
099929c677
commit
39aa2dfe01
@ -1,5 +1,8 @@
|
|||||||
const _ = require("lodash");
|
const _ = require("lodash");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param extendedData
|
||||||
|
*/
|
||||||
function generateWeather(extendedData = {}) {
|
function generateWeather(extendedData = {}) {
|
||||||
return JSON.stringify(
|
return JSON.stringify(
|
||||||
_.merge(
|
_.merge(
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
const _ = require("lodash");
|
const _ = require("lodash");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param extendedData
|
||||||
|
*/
|
||||||
function generateWeatherForecast(extendedData = {}) {
|
function generateWeatherForecast(extendedData = {}) {
|
||||||
return JSON.stringify(
|
return JSON.stringify(
|
||||||
_.merge(
|
_.merge(
|
||||||
|
@ -12,6 +12,9 @@ describe("Weather module", function () {
|
|||||||
|
|
||||||
helpers.setupTimeout(this);
|
helpers.setupTimeout(this);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param responses
|
||||||
|
*/
|
||||||
async function setup(responses) {
|
async function setup(responses) {
|
||||||
app = await helpers.startApplication({
|
app = await helpers.startApplication({
|
||||||
args: ["js/electron.js"],
|
args: ["js/electron.js"],
|
||||||
@ -23,10 +26,17 @@ describe("Weather module", function () {
|
|||||||
app.client.setupStub();
|
app.client.setupStub();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param element
|
||||||
|
*/
|
||||||
async function getElement(element) {
|
async function getElement(element) {
|
||||||
return await app.client.$(element);
|
return await app.client.$(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param element
|
||||||
|
* @param result
|
||||||
|
*/
|
||||||
async function getText(element, result) {
|
async function getText(element, result) {
|
||||||
const elem = await getElement(element);
|
const elem = await getElement(element);
|
||||||
return await elem.getText(element).then(function (text) {
|
return await elem.getText(element).then(function (text) {
|
||||||
|
@ -67,6 +67,9 @@ describe("Translator", function () {
|
|||||||
Fallback: "core fallback"
|
Fallback: "core fallback"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Translator
|
||||||
|
*/
|
||||||
function setTranslations(Translator) {
|
function setTranslations(Translator) {
|
||||||
Translator.translations = translations;
|
Translator.translations = translations;
|
||||||
Translator.coreTranslations = coreTranslations;
|
Translator.coreTranslations = coreTranslations;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user