mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 07:33:12 +09:00
Fix misc problems detected by ESLint
Reformat and clean up issues detected by ESLint.
This commit is contained in:
1 parent
8cb21c5fa8
commit
e9f5cae4f0
34 files changed
+132
-189
No files matched your search
@@ -287,7 +287,7 @@ describe("lib/config/classes", function() {
|
||||
});
|
||||
|
||||
it("should work if field is in enum", function() {
|
||||
testInstance.set("enum", "c"),
|
||||
testInstance.set("enum", "c");
|
||||
assert.equal(testInstance.get("enum"), "c");
|
||||
});
|
||||
|
||||
@@ -299,7 +299,7 @@ describe("lib/config/classes", function() {
|
||||
});
|
||||
|
||||
it("should work if field is optional", function() {
|
||||
testInstance.set("test", "spam"),
|
||||
testInstance.set("test", "spam");
|
||||
assert.equal(testInstance.get("test"), "spam");
|
||||
});
|
||||
|
||||
@@ -311,7 +311,7 @@ describe("lib/config/classes", function() {
|
||||
});
|
||||
|
||||
it("should treat empty string as null", function() {
|
||||
testInstance.set("test", ""),
|
||||
testInstance.set("test", "");
|
||||
assert.equal(testInstance.get("test"), null);
|
||||
});
|
||||
|
||||
@@ -451,7 +451,8 @@ describe("lib/config/classes", function() {
|
||||
});
|
||||
it("should construct a finalized class", function() {
|
||||
TestConfig.finalize();
|
||||
new TestConfig();
|
||||
let config = new TestConfig();
|
||||
assert(config);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user