From 48ed216751770ac91eaecbf54bc8c1a5f8d828b6 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 10 Jan 2025 04:25:53 -0500 Subject: [PATCH] code comments addressed --- lib/lambda/update/updatePackage.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/lambda/update/updatePackage.test.ts b/lib/lambda/update/updatePackage.test.ts index a15bbc3b4..89e4514a6 100644 --- a/lib/lambda/update/updatePackage.test.ts +++ b/lib/lambda/update/updatePackage.test.ts @@ -27,7 +27,7 @@ describe("handler", () => { expect(result).toStrictEqual(expectedResult); }); - it("should return 400 if package ID or action is not found", async () => { + it("should return 400 if package ID is not found", async () => { const noActionevent = { body: JSON.stringify({ packageId: "123", changeReason: "Nunya" }), } as APIGatewayEvent; @@ -35,6 +35,8 @@ describe("handler", () => { const resultPackage = await handler(noActionevent); expect(resultPackage.statusCode).toBe(400); + }); + it("should return 400 if action is not found", async () => { const noApackageEvent = { body: JSON.stringify({ action: "123", changeReason: "Nunya" }), } as APIGatewayEvent; @@ -43,7 +45,6 @@ describe("handler", () => { expect(resultAction.statusCode).toBe(400); }); - it("should get a package", async () => { const noActionevent = { body: JSON.stringify({ packageId: "123", action: "delete", changeReason: "Nunya" }),