forked from Yara724/api
Better error handling and validation and min/max prices added for expert submit
This commit is contained in:
@@ -51,9 +51,9 @@ describe("SubmitExpertReplyV2Dto", () => {
|
||||
{
|
||||
partId: 201,
|
||||
typeOfDamage: TypeOfDamage.Repair,
|
||||
price: "10000",
|
||||
salary: "0",
|
||||
totalPayment: "10000",
|
||||
price: "100000",
|
||||
salary: "100000",
|
||||
totalPayment: "200000",
|
||||
factorNeeded: false,
|
||||
},
|
||||
],
|
||||
@@ -69,14 +69,14 @@ describe("SubmitExpertReplyV2Dto", () => {
|
||||
{
|
||||
partId: 11,
|
||||
typeOfDamage: TypeOfDamage.Repair,
|
||||
salary: "۵,۰۰۰",
|
||||
totalPayment: "5000",
|
||||
salary: "۱۰۰,۰۰۰",
|
||||
totalPayment: "100000",
|
||||
factorNeeded: false,
|
||||
},
|
||||
{
|
||||
partId: 23,
|
||||
typeOfDamage: TypeOfDamage.Change,
|
||||
price: "۵۰,۰۰۰",
|
||||
price: "۱۰۰,۰۰۰",
|
||||
salary: "۱۰۰,۰۰۰",
|
||||
totalPayment: "150000",
|
||||
factorNeeded: false,
|
||||
|
||||
Reference in New Issue
Block a user