mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Merge pull request #1141 from bbassie/test/plugin-integration
Finish the plugin system integration tests
This commit is contained in:
11 files changed
+120
-4
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")],
|
||||
["test_plugin", path.resolve("test/file/test_plugin")],
|
||||
["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([["test_plugin", path.resolve("test/file/test_plugin")]])
|
||||
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