Moved metadata files to their corresponding modloader folders

This commit is contained in:
Kir_Antipov 2022-09-10 14:08:12 +03:00
parent 45765a374e
commit cd97ceed4f
4 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ describe("ModMetadataReader.readMetadata", () => {
describe("Fabric", () => { describe("Fabric", () => {
beforeAll(() => new Promise(resolve => { beforeAll(() => new Promise(resolve => {
const zip = new ZipFile(); const zip = new ZipFile();
zip.addFile("./test/content/fabric.mod.json", "fabric.mod.json"); zip.addFile("./test/content/fabric/fabric.mod.json", "fabric.mod.json");
zip.end(); zip.end();
zip.outputStream.pipe(fs.createWriteStream("example-mod.fabric.jar")).on("close", resolve); zip.outputStream.pipe(fs.createWriteStream("example-mod.fabric.jar")).on("close", resolve);
})); }));
@ -97,7 +97,7 @@ describe("ModMetadataReader.readMetadata", () => {
describe("Forge", () => { describe("Forge", () => {
beforeAll(() => new Promise(resolve => { beforeAll(() => new Promise(resolve => {
const zip = new ZipFile(); const zip = new ZipFile();
zip.addFile("./test/content/mods.toml", "META-INF/mods.toml"); zip.addFile("./test/content/forge/mods.toml", "META-INF/mods.toml");
zip.end(); zip.end();
zip.outputStream.pipe(fs.createWriteStream("example-mod.forge.jar")).on("close", resolve); zip.outputStream.pipe(fs.createWriteStream("example-mod.forge.jar")).on("close", resolve);
})); }));
@ -173,7 +173,7 @@ describe("ModMetadataReader.readMetadata", () => {
describe("Quilt", () => { describe("Quilt", () => {
beforeAll(() => new Promise(resolve => { beforeAll(() => new Promise(resolve => {
const zip = new ZipFile(); const zip = new ZipFile();
zip.addFile("./test/content/quilt.mod.json", "quilt.mod.json"); zip.addFile("./test/content/quilt/quilt.mod.json", "quilt.mod.json");
zip.end(); zip.end();
zip.outputStream.pipe(fs.createWriteStream("example-mod.quilt.jar")).on("close", resolve); zip.outputStream.pipe(fs.createWriteStream("example-mod.quilt.jar")).on("close", resolve);
})); }));