Skip to content

Commit dce5bf9

Browse files
committed
chore: fix linting issues
1 parent b6eaa32 commit dce5bf9

File tree

1 file changed

+37
-38
lines changed

1 file changed

+37
-38
lines changed
Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,46 @@
1-
const baseKarma = require('./base-karma');
2-
const mochaConfig = require('../../.mocharc.json');
3-
1+
const baseKarma = require('./base-karma')
2+
const mochaConfig = require('../../.mocharc.json')
43

54
module.exports = function (config) {
65
const createWebDriverConfig = (hostname) => ({
76
hostname,
8-
port: 80,
9-
});
10-
7+
port: 80
8+
})
9+
1110
const createLauncher = (config, overrides = {}) => ({
1211
base: 'WebDriver',
1312
config,
14-
"LT:Options": {
15-
build: 'OSS',
16-
name: 'mathjs',
17-
video: true,
18-
visual: false,
19-
network: false,
20-
console: false,
21-
terminal: true,
22-
tunnel: true,
23-
user: process.env.LT_USERNAME,
24-
accessKey: process.env.LT_ACCESS_KEY,
25-
pseudoActivityInterval: 15000,
26-
w3c: true
27-
},
28-
...overrides,
29-
});
13+
'LT:Options': {
14+
build: 'OSS',
15+
name: 'mathjs',
16+
video: true,
17+
visual: false,
18+
network: false,
19+
console: false,
20+
terminal: true,
21+
tunnel: true,
22+
user: process.env.LT_USERNAME,
23+
accessKey: process.env.LT_ACCESS_KEY,
24+
pseudoActivityInterval: 15000,
25+
w3c: true
26+
},
27+
...overrides
28+
})
3029

31-
const webdriverConfig = createWebDriverConfig('hub.lambdatest.com');
32-
const mobileWebDriverConfig = createWebDriverConfig('mobile-hub.lambdatest.com');
30+
const webdriverConfig = createWebDriverConfig('hub.lambdatest.com')
31+
const mobileWebDriverConfig = createWebDriverConfig('mobile-hub.lambdatest.com')
3332

3433
const customLaunchers = {
3534
chrome_windows: createLauncher(webdriverConfig, {
3635
browserName: 'Chrome',
3736
version: 'latest',
38-
platform: 'Windows 11',
37+
platform: 'Windows 11'
3938
}),
4039

4140
firefox_windows: createLauncher(webdriverConfig, {
4241
browserName: 'Firefox',
4342
version: 'latest',
44-
platform: 'Windows 11',
43+
platform: 'Windows 11'
4544
}),
4645

4746
safari_mac: createLauncher(webdriverConfig, {
@@ -54,19 +53,19 @@ module.exports = function (config) {
5453
edge_windows: createLauncher(webdriverConfig, {
5554
browserName: 'MicrosoftEdge',
5655
version: 'latest',
57-
platform: 'Windows 11',
56+
platform: 'Windows 11'
5857
}),
5958

6059
ios: createLauncher(mobileWebDriverConfig, {
6160
deviceName: 'iPhone.*',
6261
browserName: 'Safari',
63-
appiumVersion: "1.22.3",
62+
appiumVersion: '1.22.3',
6463
isRealMobile: true,
65-
platformName: 'ios',
66-
}),
67-
};
64+
platformName: 'ios'
65+
})
66+
}
6867

69-
const baseConfig = baseKarma(config);
68+
const baseConfig = baseKarma(config)
7069

7170
config.set({
7271
...baseConfig,
@@ -76,12 +75,12 @@ module.exports = function (config) {
7675
frameworks: ['mocha'],
7776
client: {
7877
mocha: {
79-
timeout: mochaConfig.timeout,
80-
},
78+
timeout: mochaConfig.timeout
79+
}
8180
},
8281
reporters: ['spec'],
8382
files: [
84-
'test/browser-test-config/browser-tests.test.js',
83+
'test/browser-test-config/browser-tests.test.js'
8584
],
8685
plugins: [
8786
'karma-webpack',
@@ -99,6 +98,6 @@ module.exports = function (config) {
9998
browsers: Object.keys(customLaunchers),
10099
customLaunchers,
101100
singleRun: true,
102-
autoWatch: false,
103-
});
104-
};
101+
autoWatch: false
102+
})
103+
}

0 commit comments

Comments
 (0)