mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 20:22:53 +00:00
More spelling fixes
This commit is contained in:
parent
4df1895560
commit
c1559dd8c8
@ -16,7 +16,7 @@ var Utils = require(__dirname + "/../../js/utils.js");
|
|||||||
|
|
||||||
/* getConfigFile()
|
/* getConfigFile()
|
||||||
* Return string with path of configuration file
|
* Return string with path of configuration file
|
||||||
* Check if set by enviroment variable MM_CONFIG_FILE
|
* Check if set by environment variable MM_CONFIG_FILE
|
||||||
*/
|
*/
|
||||||
function getConfigFile() {
|
function getConfigFile() {
|
||||||
// FIXME: This function should be in core. Do you want refactor me ;) ?, be good!
|
// FIXME: This function should be in core. Do you want refactor me ;) ?, be good!
|
||||||
@ -35,7 +35,7 @@ function checkConfigFile() {
|
|||||||
console.error(Utils.colors.error("File not found: "), configFileName);
|
console.error(Utils.colors.error("File not found: "), configFileName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// check permision
|
// check permission
|
||||||
try {
|
try {
|
||||||
fs.accessSync(configFileName, fs.F_OK);
|
fs.accessSync(configFileName, fs.F_OK);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -67,4 +67,4 @@ function checkConfigFile() {
|
|||||||
|
|
||||||
if (process.env.NODE_ENV !== "test") {
|
if (process.env.NODE_ENV !== "test") {
|
||||||
checkConfigFile();
|
checkConfigFile();
|
||||||
};
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Magic Mirror Test config sample enviroment
|
/* Magic Mirror Test config sample environment
|
||||||
*
|
*
|
||||||
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Magic Mirror Test config sample enviroment set por 8090
|
/* Magic Mirror Test config sample environment set port 8090
|
||||||
*
|
*
|
||||||
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
|
@ -38,7 +38,7 @@ describe("port directive configuration", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("Set port 8100 on enviroment variable MM_PORT", function () {
|
describe("Set port 8100 on environment variable MM_PORT", function () {
|
||||||
before(function () {
|
before(function () {
|
||||||
process.env.MM_PORT = 8100;
|
process.env.MM_PORT = 8100;
|
||||||
// Set config sample for use in this test
|
// Set config sample for use in this test
|
||||||
@ -56,5 +56,4 @@ describe("port directive configuration", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -122,7 +122,6 @@ describe("Translations", function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user