mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 15:33:12 +09:00
Remove variable shadowing
Refactor to remove all no-shadow warnings.
This commit is contained in:
1 parent
e5e82ba2fb
commit
00a1f6aea7
14 files changed
+87
-86
No files matched your search
@@ -415,14 +415,14 @@ describe("lib/config/classes", function() {
|
||||
|
||||
describe(".registerGroup()", function() {
|
||||
it("should throw if the class is finalized", function() {
|
||||
class TestConfig extends classes.Config { }
|
||||
TestConfig.finalize();
|
||||
class FinalizedConfig extends classes.Config { }
|
||||
FinalizedConfig.finalize();
|
||||
class TestGroup extends classes.ConfigGroup { }
|
||||
TestGroup.groupName = "test";
|
||||
TestGroup.finalize();
|
||||
|
||||
assert.throws(
|
||||
() => TestConfig.registerGroup(TestGroup),
|
||||
() => FinalizedConfig.registerGroup(TestGroup),
|
||||
new Error("Cannot register group on finalized config")
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user