Skip to content

Commit f721f8d

Browse files
committed
eslint fixes
1 parent f25db67 commit f721f8d

33 files changed

+180
-183
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ workflows:
11631163
- e2e-tests:
11641164
name: E2ETest
11651165
build: docker
1166-
parallelism: 1
1166+
parallelism: 4
11671167
requires:
11681168
- Build docker image
11691169
- e2e-app-image:

tests/e2e/common-actions/workbench-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {t, Selector} from 'testcafe';
1+
import { t, Selector } from 'testcafe';
22
import { WorkbenchPage } from '../pageObjects';
33

44
const workbenchPage = new WorkbenchPage();

tests/e2e/desktop.runner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import testcafe from 'testcafe';
66
return t
77
.createRunner()
88
.compilerOptions({
9-
"typescript": {
9+
'typescript': {
1010
configPath: 'tsconfig.testcafe.json',
1111
experimentalDecorators: true
12-
}})
12+
} })
1313
.src((process.env.TEST_FILES || 'tests/electron/**/*.e2e.ts').split('\n'))
1414
.browsers(['electron'])
1515
.screenshots({
1616
path: './report/screenshots/',
1717
takeOnFails: true,
18-
pathPattern: '${USERAGENT}/${DATE}_${TIME}/${FIXTURE}_${TEST}_${FILE_INDEX}.png',
18+
pathPattern: '${USERAGENT}/${DATE}_${TIME}/${FIXTURE}_${TEST}_${FILE_INDEX}.png'
1919
})
2020
.reporter([
2121
'spec',
@@ -46,7 +46,7 @@ import testcafe from 'testcafe';
4646
process.exit(failedCount);
4747
})
4848
.catch((e) => {
49-
console.error(e)
49+
console.error(e);
5050
process.exit(1);
5151
});
5252
})();

tests/e2e/desktop.runner.win.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import testcafe from 'testcafe';
66
return t
77
.createRunner()
88
.compilerOptions({
9-
"typescript": {
9+
'typescript': {
1010
configPath: 'tsconfig.testcafe.json',
1111
experimentalDecorators: true
12-
}})
12+
} })
1313
.src((process.env.TEST_FILES || 'tests/electron/**/*.e2e.ts').split('\n'))
1414
.browsers(['electron'])
1515
.screenshots({
1616
path: 'report/screenshots/',
1717
takeOnFails: true,
18-
pathPattern: '${USERAGENT}/${DATE}_${TIME}/${FIXTURE}_${TEST}_${FILE_INDEX}.png',
18+
pathPattern: '${USERAGENT}/${DATE}_${TIME}/${FIXTURE}_${TEST}_${FILE_INDEX}.png'
1919
})
2020
.reporter([
2121
'spec',

tests/e2e/helpers/api/api-database.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@ export class DatabaseAPIRequests {
2727
): Promise<void> {
2828
const uniqueId = chance.string({ length: 10 });
2929
const requestBody: {
30-
name?: string;
31-
host: string;
32-
port: number;
33-
username?: string;
34-
password?: string;
35-
tls?: boolean;
36-
verifyServerCert?: boolean;
30+
name?: string,
31+
host: string,
32+
port: number,
33+
username?: string,
34+
password?: string,
35+
tls?: boolean,
36+
verifyServerCert?: boolean,
3737
caCert?: {
38-
name: string;
39-
certificate?: string;
40-
};
38+
name: string,
39+
certificate?: string
40+
},
4141
clientCert?: {
42-
name: string;
43-
certificate?: string;
44-
key?: string;
45-
};
42+
name: string,
43+
certificate?: string,
44+
key?: string
45+
}
4646
} = {
4747
name: databaseParameters.databaseName,
4848
host: databaseParameters.host,
4949
port: Number(databaseParameters.port),
5050
username: databaseParameters.databaseUsername,
51-
password: databaseParameters.databasePassword,
51+
password: databaseParameters.databasePassword
5252
};
5353

5454
if (databaseParameters.caCert) {

tests/e2e/helpers/api/api-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { t } from 'testcafe';
2-
import { sendPostRequest } from './api-common';
32
import { ResourcePath } from '../constants';
3+
import { sendPostRequest } from './api-common';
44

55
/**
66
* Synchronize features

tests/e2e/helpers/common.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from 'path';
2-
import * as archiver from 'archiver';
32
import * as fs from 'fs';
3+
import * as archiver from 'archiver';
44
import { ClientFunction, RequestMock, t } from 'testcafe';
55
import { Chance } from 'chance';
66
import { apiUrl, commonUrl } from './conf';
@@ -13,7 +13,6 @@ declare global {
1313
}
1414
}
1515

16-
1716
const settingsApiUrl = `${commonUrl}/api/settings`;
1817
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; // lgtm[js/disabling-certificate-validation]
1918
const mockedSettingsResponse = {

tests/e2e/helpers/database-scripts.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { workingDirectory } from '../helpers/conf';
21
import * as sqlite3 from 'sqlite3';
2+
import { workingDirectory } from '../helpers/conf';
33

44
const dbPath = `${workingDirectory}/redisinsight.db`;
55

@@ -17,7 +17,8 @@ export async function updateColumnValueInDBTable(tableName: string, columnName:
1717
db.run(query, (err: { message: string }) => {
1818
if (err) {
1919
reject(new Error(`Error during changing ${columnName} column value: ${err.message}`));
20-
} else {
20+
}
21+
else {
2122
db.close();
2223
resolve();
2324
}
@@ -38,7 +39,8 @@ export async function getColumnValueFromTableInDB(tableName: string, columnName:
3839
db.get(query, (err: { message: string }, row: any) => {
3940
if (err) {
4041
reject(new Error(`Error during getting ${columnName} column value: ${err.message}`));
41-
} else {
42+
}
43+
else {
4244
const columnValue = row[columnName];
4345
db.close();
4446
resolve(columnValue);
@@ -57,11 +59,11 @@ export async function deleteRowsFromTableInDB(tableName: string): Promise<void>
5759

5860
return new Promise<void>((resolve, reject) => {
5961

60-
6162
db.run(query, (err: { message: string }) => {
6263
if (err) {
6364
reject(new Error(`Error during ${tableName} table rows deletion: ${err.message}`));
64-
} else {
65+
}
66+
else {
6567
db.close();
6668
resolve();
6769
}

tests/e2e/helpers/insights.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as fs from 'fs-extra';
21
import * as path from 'path';
2+
import * as fs from 'fs-extra';
33
import { BasePage } from '../pageObjects';
44
import { deleteRowsFromTableInDB, updateColumnValueInDBTable } from './database-scripts';
55
import { syncFeaturesApi } from './api/api-info';

tests/e2e/helpers/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { workingDirectory} from '../helpers/conf';
1+
import { workingDirectory } from '../helpers/conf';
22
import { NotificationParameters } from '../pageObjects/components/navigation/notification-panel';
33

44
const dbPath = `${workingDirectory}/redisinsight.db`;

0 commit comments

Comments
 (0)