Skip to content

Commit

Permalink
activated noDelete
Browse files Browse the repository at this point in the history
  • Loading branch information
RLCorp committed Oct 1, 2024
1 parent 7b5396b commit 2471246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"noConfusingVoidType": "off"
},
"performance": {
"noDelete": "off",
"noAccumulatingSpread": "off"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('TestSlotComponent', () => {
expect(component.isIndicatorNeededForSlot()).toBe(false);
});
it('should return false if specialNeeds is missing', () => {
delete component.slot.booking.application;
component.slot.booking.application = undefined;
expect(component.isAdditionalNeedsSlot()).toBe(false);
});
it('should return true if entitlementCheck is true (specialNeeds is blank, slotType is Standard)', () => {
Expand All @@ -186,7 +186,7 @@ describe('TestSlotComponent', () => {
});
it('should return false if entitlementCheck is missing (specialNeeds is blank, slotType is Standard)', () => {
component.slot.booking.application.specialNeeds = '';
delete component.slot.booking.application.entitlementCheck;
component.slot.booking.application.entitlementCheck = undefined;
component.slot.booking.application.specialNeedsCode = SpecialNeedsCode.NONE;
expect(component.isIndicatorNeededForSlot()).toBe(false);
});
Expand Down

0 comments on commit 2471246

Please sign in to comment.