mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
Add a test plugin without a module for the host tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ab36151bd
commit
6f70ccbf85
5 files changed
+22
-2
No files matched your search
@@ -154,7 +154,7 @@ describe("host/create_scenario", function() {
|
||||
await fs.cp(scenario, freeplay, { recursive: true });
|
||||
pluginInfos = await lib.loadPluginInfos(new Map([
|
||||
["research_sync", path.resolve("plugins/research_sync")],
|
||||
["global_chat", path.resolve("plugins/global_chat")],
|
||||
["test_plugin_no_module", path.resolve("test/file/test_plugin_no_module")],
|
||||
]));
|
||||
lib.addPluginConfigFields(pluginInfos);
|
||||
hostConfig = new lib.HostConfig("host", { "host.factorio_directory": factorioDir });
|
||||
|
||||
+1
-1
@@ -241,7 +241,7 @@ describe("host/patch", function() {
|
||||
});
|
||||
it("should skip plugins without a module", async function() {
|
||||
const pluginInfos = await lib.loadPluginInfos(
|
||||
new Map([["global_chat", path.resolve("plugins/global_chat")]])
|
||||
new Map([["test_plugin_no_module", path.resolve("test/file/test_plugin_no_module")]])
|
||||
);
|
||||
const modules = await patch.loadModules(pluginInfos);
|
||||
assert.deepEqual([...modules.keys()], ["clusterio"]);
|
||||
|
||||
Reference in new issue
Block a user