forked from Yara724/api
Fixed daqi being enforced on REPAIR
This commit is contained in:
@@ -33,6 +33,20 @@ describe("getExpertReplyPricingValidationError", () => {
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it("accepts a repair line without daghi", () => {
|
||||
expect(
|
||||
getExpertReplyPricingValidationError([
|
||||
{
|
||||
partId: 201,
|
||||
typeOfDamage: TypeOfDamage.Repair,
|
||||
price: "10000",
|
||||
salary: "0",
|
||||
totalPayment: "10000",
|
||||
},
|
||||
]),
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it("rejects a repair line without a price", () => {
|
||||
expect(
|
||||
getExpertReplyPricingValidationError([
|
||||
|
||||
Reference in New Issue
Block a user