diff --git a/tests/configs/without_modules.js b/tests/configs/without_modules.js index d84f63b7..9cc097ae 100644 --- a/tests/configs/without_modules.js +++ b/tests/configs/without_modules.js @@ -8,7 +8,7 @@ let config = { ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.10.1"], language: "en", timeFormat: 24, - units: "metric", + units: "metric" }; /*************** DO NOT EDIT THE LINE BELOW ***************/ diff --git a/tests/e2e/modules/compliments_spec.js b/tests/e2e/modules/compliments_spec.js index 6c0a2211..0f3b74e8 100644 --- a/tests/e2e/modules/compliments_spec.js +++ b/tests/e2e/modules/compliments_spec.js @@ -1,12 +1,17 @@ const helpers = require("../global-setup"); -doTest = function (complimentsArray) { +/** + * move similar tests in function doTest + * + * @param {Array} complimentsArray The array of compliments. + */ +function doTest(complimentsArray) { let elem = document.querySelector(".compliments"); expect(elem).not.toBe(null); elem = document.querySelector(".module-content"); expect(elem).not.toBe(null); expect(complimentsArray).toContain(elem.textContent); -}; +} describe("Compliments module", function () { afterAll(function () {