diff --git a/tests/configs/check_config.js b/tests/configs/check_config.js index 5f241409..03a275bf 100644 --- a/tests/configs/check_config.js +++ b/tests/configs/check_config.js @@ -52,12 +52,12 @@ function checkConfigFile() { if (err) { throw err; } v.JSHINT(data); // Parser by jshint - if (v.JSHINT.errors.length == 0) { + if (v.JSHINT.errors.length === 0) { console.log("Your configuration file doesn't contain syntax errors :)"); return true; } else { errors = v.JSHINT.data().errors; - for (idx in errors) { + for (var idx in errors) { error = errors[idx]; console.log("Line", error.line, "col", error.character, error.reason); } diff --git a/tests/servers/basic-auth.js b/tests/servers/basic-auth.js index c409ad2d..15ce6caa 100644 --- a/tests/servers/basic-auth.js +++ b/tests/servers/basic-auth.js @@ -21,7 +21,7 @@ app.use(auth.connect(basic)); var directories = ["/tests/configs"]; var directory; rootPath = path.resolve(__dirname + "/../../"); -for (i in directories) { +for (var i in directories) { directory = directories[i]; app.use(directory, express.static(path.resolve(rootPath + directory))); } diff --git a/tests/unit/functions/calendar_spec.js b/tests/unit/functions/calendar_spec.js index d4035f33..6e4fe988 100644 --- a/tests/unit/functions/calendar_spec.js +++ b/tests/unit/functions/calendar_spec.js @@ -5,7 +5,7 @@ global.moment = require("moment"); describe("Functions into modules/default/calendar/calendar.js", function() { // Fake for use by calendar.js - Module = {} + Module = {}; Module.definitions = {}; Module.register = function (name, moduleDefinition) { Module.definitions[name] = moduleDefinition; diff --git a/tests/unit/functions/currentweather_spec.js b/tests/unit/functions/currentweather_spec.js index 18b52c81..d05df854 100644 --- a/tests/unit/functions/currentweather_spec.js +++ b/tests/unit/functions/currentweather_spec.js @@ -39,7 +39,7 @@ describe("Functions module currentweather", function() { [2.0 , "2"], ["2.12" , "2"], [10.1 , "10"] - ] + ]; values.forEach(value => { it(`for ${value[0]} should be return ${value[1]}`, function() { @@ -66,7 +66,7 @@ describe("Functions module currentweather", function() { ["2.12" , "2.1"], [10.1 , "10.1"], [10.10 , "10.1"] - ] + ]; values.forEach(value => { it(`for ${value[0]} should be return ${value[1]}`, function() { diff --git a/tests/unit/functions/newsfeed_spec.js b/tests/unit/functions/newsfeed_spec.js index 583d696a..42971f10 100644 --- a/tests/unit/functions/newsfeed_spec.js +++ b/tests/unit/functions/newsfeed_spec.js @@ -7,7 +7,7 @@ var vm = require("vm"); describe("Functions into modules/default/newsfeed/newsfeed.js", function() { - Module = {} + Module = {}; Module.definitions = {}; Module.register = function (name, moduleDefinition) { Module.definitions[name] = moduleDefinition; diff --git a/tests/unit/functions/weatherforecast_spec.js b/tests/unit/functions/weatherforecast_spec.js index 57c386dd..99fa4402 100644 --- a/tests/unit/functions/weatherforecast_spec.js +++ b/tests/unit/functions/weatherforecast_spec.js @@ -35,7 +35,7 @@ describe("Functions module weatherforecast", function() { [2.0 , "2"], ["2.12" , "2"], [10.1 , "10"] - ] + ]; values.forEach(value => { it(`for ${value[0]} should be return ${value[1]}`, function() { @@ -62,7 +62,7 @@ describe("Functions module weatherforecast", function() { ["2.12" , "2.1"], [10.1 , "10.1"], [10.10 , "10.1"] - ] + ]; values.forEach(value => { it(`for ${value[0]} should be return ${value[1]}`, function() {