mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Add name shortcut for ConfigGroup instances
Add .name shortcut to get the groupName class property of config group instances.
This commit is contained in:
1 parent
67ca8dcc4d
commit
8c9daff0bb
2 files changed
+21
-4
No files matched your search
@@ -156,6 +156,14 @@ describe("lib/config/classes", function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("get name", function() {
|
||||
it("should give the name of the group", async function() {
|
||||
let testInstance = new TestGroup();
|
||||
await testInstance.init();
|
||||
assert.equal(testInstance.name, "test_group");
|
||||
});
|
||||
});
|
||||
|
||||
describe(".serialize()", function() {
|
||||
it("should serialize a basic group", async function() {
|
||||
let testInstance = new TestGroup();
|
||||
|
||||
Reference in new issue
Block a user