Add search mods request

Add paged search mods request suitable for showing a real time list of
results for a user provided search expression.
This commit is contained in:
Hornwitser committed 2022-09-24 21:10:38 +02:00
1 parent 6039715a53
commit 3eb63db313
5 files changed
+200 -2

No files matched your search

+7
View File
@@ -929,6 +929,13 @@ describe("Integration of Clusterio", function() {
});
});
describe("mod search", function() {
it("searches the list of mods", async function() {
let result = await execCtl("mod search 1.1 name:empty_mod");
assert(result.stdout.indexOf("empty_mod") !== -1, "empty_mod is not in the result");
});
});
describe("mod download", function() {
it("downloads a mod", async function() {
await fs.unlink(path.join("temp", "test", "empty_mod_1.0.0.zip"));