apply eslint and prettier rules

This commit is contained in:
Sebastian Sdorra
2019-10-21 10:57:56 +02:00
parent 85773186db
commit 4bb8e6153b
227 changed files with 1147 additions and 4076 deletions

View File

@@ -14,7 +14,7 @@ describe("test displayName validation", () => {
"Zaphod Beeblebrox <zaphod.beeblebrox@hitchhiker.com>",
"Marvin, der depressive Roboter"
];
for (let name of validNames) {
for (const name of validNames) {
expect(validator.isDisplayNameValid(name)).toBe(true);
}
});
@@ -24,7 +24,7 @@ describe("test password validation", () => {
it("should return false", () => {
// invalid taken from ValidationUtilTest.java
const invalid = ["", "abc", "aaabbbcccdddeeefffggghhhiiijjjkkk"];
for (let password of invalid) {
for (const password of invalid) {
expect(validator.isPasswordValid(password)).toBe(false);
}
});
@@ -32,7 +32,7 @@ describe("test password validation", () => {
it("should return true", () => {
// valid taken from ValidationUtilTest.java
const valid = ["secret123", "mySuperSecretPassword"];
for (let password of valid) {
for (const password of valid) {
expect(validator.isPasswordValid(password)).toBe(true);
}
});