mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 23:30:41 +09:00
Move defaultAccess to static property
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -7,6 +7,8 @@ const CA = lib.ConfigAccess;
|
||||
describe("lib/config/classes", function() {
|
||||
describe("Config", function() {
|
||||
class TestConfig extends lib.Config {
|
||||
static defaultAccess = ["local", "remote"];
|
||||
|
||||
static migrations(config) {
|
||||
if (config.hasOwnProperty("test.migration")) {
|
||||
config["alpha.foo"] = config["test.migration"];
|
||||
@@ -38,10 +40,6 @@ describe("lib/config/classes", function() {
|
||||
"test.cred": { credential: ["local"] },
|
||||
"test.rdo": { readonly: ["local"] },
|
||||
};
|
||||
|
||||
constructor(location, fields) {
|
||||
super(location, fields, ["local", "remote"]);
|
||||
}
|
||||
}
|
||||
|
||||
describe("constructor", function() {
|
||||
|
||||
Reference in new issue
Block a user