Add default mod packs (#735)

This commit is contained in:
Cooldude2606 authored and GitHub committed 2025-02-14 14:47:26 +00:00
1 parent 7b8945ff15
commit 8996671bea
6 files changed
+72 -1

No files matched your search

+18
View File
@@ -378,6 +378,24 @@ describe("lib/data/ModPack", function() {
/* eslint-enable indent */
});
});
describe("defaultModPacks", function() {
it("should contain at least one base game only", function() {
const modPack = ModPack.defaultModPacks.find(pack => {
const base = pack.mods.get("base");
const spaceAge = pack.mods.get("space-age");
return base && base.enabled && (!spaceAge || !spaceAge.enabled);
});
assert(modPack, "Does not contain base game only");
});
it("should contain at least one space age expansion", function() {
const modPack = ModPack.defaultModPacks.find(pack => {
const base = pack.mods.get("base");
const spaceAge = pack.mods.get("space-age");
return base && base.enabled && spaceAge && spaceAge.enabled;
});
assert(modPack, "Does not contain space age expansion");
});
});
describe("getBuiltinMods()", function() {
it("should work with versions before 2.0", function() {
const builtinMods = ModPack.getBuiltinMods("1.1");