Fix misc problems detected by ESLint

Reformat and clean up issues detected by ESLint.
This commit is contained in:
Hornwitser committed 2020-06-17 20:59:37 +02:00
1 parent 8cb21c5fa8
commit e9f5cae4f0
34 files changed
+132 -189

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ describe("Integration of Clusterio", function() {
],
];
for (let [prop, value, , ] of testConfigs) {
for (let [prop, value, ,] of testConfigs) {
value = `"'${JSON.stringify(value).replace(/"/g, process.platform === "win32" ? '""' : '\\"')}'"`;
let args = `--instance test --field factorio.settings --prop ${prop} --value ${value}`;
await exec(`node clusterctl --config ${controlConfigPath} set-instance-config-prop ${args}`);
+2
View File
@@ -23,6 +23,7 @@ class TestControl extends link.Link {
}
async debugWsMessageEventHandler() { }
async instanceOutputEventHandler() { }
}
@@ -35,6 +36,7 @@ class TestControlConnector extends link.WebSocketClientConnector {
// Mark that this test takes a lot of time, or depeneds on a test
// that takes a lot of time.
function slowTest(test) {
// eslint-disable-next-line no-process-env
if (process.env.FAST_TEST) {
test.skip();
}
+1 -1
View File
@@ -27,7 +27,7 @@ describe("Integration of lib/factorio/server", function() {
before(async function() {
// Delete result from previous run of these tests
if (fs.existsSync(writePath)) {
if (await fs.pathExists(writePath)) {
await fs.remove(writePath);
}