Fixes InsuranceController Tests
This commit is contained in:
parent
6cd86e67b0
commit
5d2af422cb
@ -1424,9 +1424,12 @@ describe("InsuranceController", () =>
|
|||||||
expect(mockPayMoney).toHaveBeenCalledWith(
|
expect(mockPayMoney).toHaveBeenCalledWith(
|
||||||
pmcData,
|
pmcData,
|
||||||
{
|
{
|
||||||
scheme_items: [{ id: "item1", count: 100 }, { id: "item2", count: 100 }],
|
scheme_items: [{ id: "5449016a4bdc2d6f028b456f", count: 100 }, {
|
||||||
|
id: "5449016a4bdc2d6f028b456f",
|
||||||
|
count: 100,
|
||||||
|
}],
|
||||||
tid: "someTraderId",
|
tid: "someTraderId",
|
||||||
Action: "",
|
Action: "SptInsure",
|
||||||
type: "",
|
type: "",
|
||||||
item_id: "",
|
item_id: "",
|
||||||
count: 0,
|
count: 0,
|
||||||
@ -1459,9 +1462,12 @@ describe("InsuranceController", () =>
|
|||||||
|
|
||||||
// Define the expected payment options structure based on the setup data.
|
// Define the expected payment options structure based on the setup data.
|
||||||
const expectedPaymentOptions = {
|
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,
|
tid: body.tid,
|
||||||
Action: "",
|
Action: "SptInsure",
|
||||||
type: "",
|
type: "",
|
||||||
item_id: "",
|
item_id: "",
|
||||||
count: 0,
|
count: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user