Run prettier over ALL files once

No other changes done in this commit
This commit is contained in:
Veeck
2020-05-11 22:22:32 +02:00
parent 3a5a29efc0
commit abb5dc5739
160 changed files with 2369 additions and 2210 deletions

View File

@@ -1,7 +1,6 @@
var expect = require("chai").expect;
describe("Functions into modules/default/newsfeed/newsfeed.js", function() {
describe("Functions into modules/default/newsfeed/newsfeed.js", function () {
Module = {};
Module.definitions = {};
Module.register = function (name, moduleDefinition) {
@@ -11,21 +10,20 @@ describe("Functions into modules/default/newsfeed/newsfeed.js", function() {
// load newsfeed.js
require("../../../modules/default/newsfeed/newsfeed.js");
describe("capitalizeFirstLetter", function() {
describe("capitalizeFirstLetter", function () {
const words = {
"rodrigo": "Rodrigo",
rodrigo: "Rodrigo",
"123m": "123m",
"magic mirror": "Magic mirror",
",a": ",a",
"ñandú": "Ñandú",
ñandú: "Ñandú",
".!": ".!"
};
Object.keys(words).forEach(word => {
it(`for ${word} should return ${words[word]}`, function() {
Object.keys(words).forEach((word) => {
it(`for ${word} should return ${words[word]}`, function () {
expect(Module.definitions.newsfeed.capitalizeFirstLetter(word)).to.equal(words[word]);
});
});
});
});