mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-26 08:01:29 +00:00
Revise require imports (#3071)
- order (external first) - remove superfluous file extensions - new line after imports - deconstruct (only one time (in `check_config.js`)) - fix path (only one time (in `global-setup.js`))
This commit is contained in:
committed by
GitHub
parent
d5395ee3f8
commit
5f38c53260
@@ -13,7 +13,7 @@ exports.startApplication = async (configFilename, exec) => {
|
||||
process.env.MM_CONFIG_FILE = configFilename;
|
||||
}
|
||||
if (exec) exec;
|
||||
global.app = require("app.js");
|
||||
global.app = require("../../../js/app");
|
||||
|
||||
return global.app.start();
|
||||
};
|
||||
|
@@ -1,5 +1,5 @@
|
||||
const helpers = require("./global-setup");
|
||||
const { injectMockData } = require("../../utils/weather_mocker");
|
||||
const helpers = require("./global-setup");
|
||||
|
||||
exports.getText = async (element, result) => {
|
||||
const elem = await helpers.waitForElement(element);
|
||||
|
Reference in New Issue
Block a user