mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 06:50:43 -05:00
Test - Insurance - Updates for v3.8
- Updates the tests for insuranceController methods for v3.8 - Updates the profileInsurance fixture with updated insurance packages for v3.8 - Updated the profileInsurance factory to remove outdated references as of v3.8
This commit is contained in:
parent
4a0d3c3487
commit
0e63ced3ac
@ -196,7 +196,7 @@ export class InsuranceController
|
|||||||
!this.itemHelper.isAttachmentAttached(item)
|
!this.itemHelper.isAttachmentAttached(item)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Process all items that are not attached, attachments. Those are handled separately, by value.
|
// Process all items that are not attached, attachments; those are handled separately, by value.
|
||||||
if (hasRegularItems)
|
if (hasRegularItems)
|
||||||
{
|
{
|
||||||
this.processRegularItems(insured, toDelete, parentAttachmentsMap);
|
this.processRegularItems(insured, toDelete, parentAttachmentsMap);
|
||||||
|
@ -24,7 +24,7 @@ export class ProfileInsuranceFactory
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adjusts the scheduledTime and messageContent.systemData.date and messageContent.systemData.time, otherwise the
|
* Adjusts the scheduledTime, messageContent.systemData.date, and messageContent.systemData.time, otherwise the
|
||||||
* dates in the original fixture will likely be expired.
|
* dates in the original fixture will likely be expired.
|
||||||
*/
|
*/
|
||||||
public adjustPackageDates(dateInput?: DateInput): this
|
public adjustPackageDates(dateInput?: DateInput): this
|
||||||
@ -45,8 +45,8 @@ export class ProfileInsuranceFactory
|
|||||||
}
|
}
|
||||||
|
|
||||||
insurance.scheduledTime = date;
|
insurance.scheduledTime = date;
|
||||||
insurance.messageContent.systemData.date = format(date, "MM.dd.yyyy");
|
insurance.systemData.date = format(date, "MM.dd.yyyy");
|
||||||
insurance.messageContent.systemData.time = format(date, "HH:mm");
|
insurance.systemData.time = format(date, "HH:mm");
|
||||||
return insurance;
|
return insurance;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user