diff --git a/app/index.js b/app/index.js index 06402c8..403781d 100644 --- a/app/index.js +++ b/app/index.js @@ -503,13 +503,13 @@ async function loginF95(browser, username, password) { let message = ""; // Check if the user is logged in - let success = await page.evaluate( + const success = await page.evaluate( /* istanbul ignore next */ (selector) => document.querySelector(selector) !== null, selectorK.AVATAR_INFO ); - let errorMessageExists = await page.evaluate( + const errorMessageExists = await page.evaluate( /* istanbul ignore next */ (selector) => document.querySelector(selector) !== null, selectorK.LOGIN_MESSAGE_ERROR diff --git a/app/scripts/url-helper.js b/app/scripts/url-helper.js index 5669ac3..221a56c 100644 --- a/app/scripts/url-helper.js +++ b/app/scripts/url-helper.js @@ -52,7 +52,7 @@ module.exports.urlExists = async function (url, checkRedirect) { if (!valid) return false; if (checkRedirect) { - let redirectUrl = await exports.getUrlRedirect(url); + const redirectUrl = await exports.getUrlRedirect(url); if (redirectUrl === url) valid = true; else valid = false; } diff --git a/test/index-test.js b/test/index-test.js index f5b10f0..31bdecb 100644 --- a/test/index-test.js +++ b/test/index-test.js @@ -172,8 +172,8 @@ describe("Search game data", function () { expect(result, "Without being logged should return null").to.be.null; }); it("Test game serialization", function () { - let json = JSON.stringify(testGame); - let parsedGameInfo = JSON.parse(json); + const json = JSON.stringify(testGame); + const parsedGameInfo = JSON.parse(json); expect(parsedGameInfo).to.be.equal(testGame); }); });