From 5d2af422cbfeba0675487dc94bc6f5ba22163743 Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 16 Nov 2023 23:55:32 -0500 Subject: [PATCH] Fixes InsuranceController Tests --- .../tests/controllers/InsuranceController.test.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/project/tests/controllers/InsuranceController.test.ts b/project/tests/controllers/InsuranceController.test.ts index 4f2cd9e1..c729b82f 100644 --- a/project/tests/controllers/InsuranceController.test.ts +++ b/project/tests/controllers/InsuranceController.test.ts @@ -1424,9 +1424,12 @@ describe("InsuranceController", () => expect(mockPayMoney).toHaveBeenCalledWith( pmcData, { - scheme_items: [{ id: "item1", count: 100 }, { id: "item2", count: 100 }], + scheme_items: [{ id: "5449016a4bdc2d6f028b456f", count: 100 }, { + id: "5449016a4bdc2d6f028b456f", + count: 100, + }], tid: "someTraderId", - Action: "", + Action: "SptInsure", type: "", item_id: "", count: 0, @@ -1459,9 +1462,12 @@ describe("InsuranceController", () => // Define the expected payment options structure based on the setup data. const expectedPaymentOptions = { - scheme_items: [{ id: "item1", count: 100 }, { id: "item2", count: 100 }], + scheme_items: [{ id: "5449016a4bdc2d6f028b456f", count: 100 }, { + id: "5449016a4bdc2d6f028b456f", + count: 100, + }], tid: body.tid, - Action: "", + Action: "SptInsure", type: "", item_id: "", count: 0,