Fixes InsuranceController Tests

This commit is contained in:
Refringe 2023-11-16 23:55:32 -05:00
parent 6cd86e67b0
commit 5d2af422cb
No known key found for this signature in database
GPG Key ID: 64E03E5F892C6F9E

View File

@ -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,