From cd97ceed4f87748665e4835acf4469908466a0ad Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Sat, 10 Sep 2022 14:08:12 +0300 Subject: [PATCH] Moved metadata files to their corresponding modloader folders --- test/content/{ => fabric}/fabric.mod.json | 0 test/content/{ => forge}/mods.toml | 0 test/content/{ => quilt}/quilt.mod.json | 0 test/unit-tests/metadata/mod-metadata-reader.test.ts | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename test/content/{ => fabric}/fabric.mod.json (100%) rename test/content/{ => forge}/mods.toml (100%) rename test/content/{ => quilt}/quilt.mod.json (100%) diff --git a/test/content/fabric.mod.json b/test/content/fabric/fabric.mod.json similarity index 100% rename from test/content/fabric.mod.json rename to test/content/fabric/fabric.mod.json diff --git a/test/content/mods.toml b/test/content/forge/mods.toml similarity index 100% rename from test/content/mods.toml rename to test/content/forge/mods.toml diff --git a/test/content/quilt.mod.json b/test/content/quilt/quilt.mod.json similarity index 100% rename from test/content/quilt.mod.json rename to test/content/quilt/quilt.mod.json diff --git a/test/unit-tests/metadata/mod-metadata-reader.test.ts b/test/unit-tests/metadata/mod-metadata-reader.test.ts index ab61ebd..0fcb720 100644 --- a/test/unit-tests/metadata/mod-metadata-reader.test.ts +++ b/test/unit-tests/metadata/mod-metadata-reader.test.ts @@ -10,7 +10,7 @@ describe("ModMetadataReader.readMetadata", () => { describe("Fabric", () => { beforeAll(() => new Promise(resolve => { 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.outputStream.pipe(fs.createWriteStream("example-mod.fabric.jar")).on("close", resolve); })); @@ -97,7 +97,7 @@ describe("ModMetadataReader.readMetadata", () => { describe("Forge", () => { beforeAll(() => new Promise(resolve => { 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.outputStream.pipe(fs.createWriteStream("example-mod.forge.jar")).on("close", resolve); })); @@ -173,7 +173,7 @@ describe("ModMetadataReader.readMetadata", () => { describe("Quilt", () => { beforeAll(() => new Promise(resolve => { 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.outputStream.pipe(fs.createWriteStream("example-mod.quilt.jar")).on("close", resolve); }));