diff --git a/tests/e2e/translations_spec.js b/tests/e2e/translations_spec.js index 70238550..727f4623 100644 --- a/tests/e2e/translations_spec.js +++ b/tests/e2e/translations_spec.js @@ -9,121 +9,121 @@ const {JSDOM} = require("jsdom"); const express = require("express"); describe("Translations", function() { - let server; + let server; - before(function() { - const app = express(); - app.use(helmet()); - app.use(function (req, res, next) { - res.header("Access-Control-Allow-Origin", "*"); - next(); - }); - app.use("/translations", express.static(path.join(__dirname, "..", "..", "translations"))); + before(function() { + const app = express(); + app.use(helmet()); + app.use(function (req, res, next) { + res.header("Access-Control-Allow-Origin", "*"); + next(); + }); + app.use("/translations", express.static(path.join(__dirname, "..", "..", "translations"))); - server = app.listen(3000); - }); + server = app.listen(3000); + }); - after(function() { - server.close(); - }); + after(function() { + server.close(); + }); it("should have a translation file in the specified path", function() { for(let language in translations) { const file = fs.statSync(translations[language]); expect(file.isFile()).to.be.equal(true); } - }); + }); - const mmm = { - name: "TranslationTest", - file(file) { - return `http://localhost:3000/${file}`; - } - }; + const mmm = { + name: "TranslationTest", + file(file) { + return `http://localhost:3000/${file}`; + } + }; - describe("Parsing language files through the Translator class", function() { - for(let language in translations) { - it(`should parse ${language}`, function(done) { - const dom = new JSDOM(`\ + describe("Parsing language files through the Translator class", function() { + for(let language in translations) { + it(`should parse ${language}`, function(done) { + const dom = new JSDOM(`\ \ + before(function(done) { + const dom = new JSDOM(`\ \ + before(function(done){ + const dom = new JSDOM(`\