From 0fdf176648fff6587ab63c597f8571db98bb9965 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 21 Jul 2024 19:09:38 -0600 Subject: [PATCH] test(drop): add code directory --- __test__/drop/drop.test.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/__test__/drop/drop.test.test.ts b/__test__/drop/drop.test.test.ts index c68d0a0b..5561999c 100644 --- a/__test__/drop/drop.test.test.ts +++ b/__test__/drop/drop.test.test.ts @@ -26,7 +26,7 @@ describe("unzipDrop using real zip files", () => { it("should correctly extract a zip with a single root folder", async () => { const appName = "single-file"; - const outputPath = path.join(APPLICATIONS_PATH, appName); + const outputPath = path.join(APPLICATIONS_PATH, appName, "code"); const zip = new AdmZip("./__test__/drop/zips/single-file.zip"); const zipBuffer = zip.toBuffer(); @@ -39,7 +39,7 @@ describe("unzipDrop using real zip files", () => { it("should correctly extract a zip with a single root folder and a subfolder", async () => { const appName = "folderwithfile"; - const outputPath = path.join(APPLICATIONS_PATH, appName); + const outputPath = path.join(APPLICATIONS_PATH, appName, "code"); const zip = new AdmZip("./__test__/drop/zips/folder-with-file.zip"); const zipBuffer = zip.toBuffer(); @@ -52,7 +52,7 @@ describe("unzipDrop using real zip files", () => { it("should correctly extract a zip with multiple root folders", async () => { const appName = "two-folders"; - const outputPath = path.join(APPLICATIONS_PATH, appName); + const outputPath = path.join(APPLICATIONS_PATH, appName, "code"); const zip = new AdmZip("./__test__/drop/zips/two-folders.zip"); const zipBuffer = zip.toBuffer(); @@ -67,7 +67,7 @@ describe("unzipDrop using real zip files", () => { it("should correctly extract a zip with a single root with a file", async () => { const appName = "nested"; - const outputPath = path.join(APPLICATIONS_PATH, appName); + const outputPath = path.join(APPLICATIONS_PATH, appName, "code"); const zip = new AdmZip("./__test__/drop/zips/nested.zip"); const zipBuffer = zip.toBuffer(); @@ -83,7 +83,7 @@ describe("unzipDrop using real zip files", () => { it("should correctly extract a zip with a single root with a folder", async () => { const appName = "folder-with-sibling-file"; - const outputPath = path.join(APPLICATIONS_PATH, appName); + const outputPath = path.join(APPLICATIONS_PATH, appName, "code"); const zip = new AdmZip("./__test__/drop/zips/folder-with-sibling-file.zip"); const zipBuffer = zip.toBuffer();