More spelling fixes

This commit is contained in:
rejas 2019-06-04 10:15:50 +02:00
parent 4df1895560
commit c1559dd8c8
5 changed files with 6 additions and 8 deletions

View File

@ -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();
}; }

View File

@ -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.

View File

@ -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.

View File

@ -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 () {
}); });
}); });
}); });
}); });

View File

@ -122,7 +122,6 @@ describe("Translations", function() {
} }
} }
}) })
}); });
} }
}); });