Unit tests were failing after migrating from VacationsNumber (object with cp, rtt, other properties) to VacDay[] array structure.
Changes
user-input.spec.ts: Replaced obsolete userInputForm tests with tests for addDay() and removeFromList() methods
user-input-service.spec.ts: Updated tests to validate VacDay[] array structure and properties (id, type, numberOfDays, expiryDate); fixed test suite name
Before/After
// Before - old VacationsNumber type
expect(vacations.cp).toBeGreaterThanOrEqual(1);expect(vacations.rtt).toBeGreaterThanOrEqual(1);// After - new VacDay[] structure
expect(Array.isArray(vacations)).toBe(true);vacations.forEach((day)=>{expect(day.numberOfDays).toBeGreaterThanOrEqual(1);expect(day.expiryDate).toBeInstanceOf(Date);});
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Unit tests were failing after migrating from `VacationsNumber` (object with `cp`, `rtt`, `other` properties) to `VacDay[]` array structure.
### Changes
- **user-input.spec.ts**: Replaced obsolete `userInputForm` tests with tests for `addDay()` and `removeFromList()` methods
- **user-input-service.spec.ts**: Updated tests to validate `VacDay[]` array structure and properties (`id`, `type`, `numberOfDays`, `expiryDate`); fixed test suite name
### Before/After
```typescript
// Before - old VacationsNumber type
expect(vacations.cp).toBeGreaterThanOrEqual(1);
expect(vacations.rtt).toBeGreaterThanOrEqual(1);
// After - new VacDay[] structure
expect(Array.isArray(vacations)).toBe(true);
vacations.forEach((day) => {
expect(day.numberOfDays).toBeGreaterThanOrEqual(1);
expect(day.expiryDate).toBeInstanceOf(Date);
});
```
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
changed title from {-[WIP] Refact-}or {-v-}ac{-ation management system with day tracking-} to {+Fix unit tests f+}or {+V+}ac{+Day[] type migration+}
changed title from **{-[WIP] Refact-}or {-v-}ac{-ation management system with day tracking-}** to **{+Fix unit tests f+}or {+V+}ac{+Day[] type migration+}**
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
<!-- gitlab-to-gitea-assignment:35:MergeRequest:64 -->
Preserved source assignment/reviewer metadata. Historical accounts stay inactive.
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Unit tests were failing after migrating from
VacationsNumber(object withcp,rtt,otherproperties) toVacDay[]array structure.Changes
userInputFormtests with tests foraddDay()andremoveFromList()methodsVacDay[]array structure and properties (id,type,numberOfDays,expiryDate); fixed test suite nameBefore/After
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
assigned to
@Copilotassigned to
@THoguetmentioned in merge request !61
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.
changed title from {-[WIP] Refact-}or {-v-}ac{-ation management system with day tracking-} to {+Fix unit tests f+}or {+V+}ac{+Day[] type migration+}
requested review from
@THoguetMerged by: THoguet at 2025-11-30 02:12:58 UTC
Preserved source assignment/reviewer metadata. Historical accounts stay inactive.
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
Preserved GitLab !64 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 1; visible source notes: 7.
gitlab-35-mergerequest-64.md (SHA-256
65e5ed257c91b77970b8b9cc94c01def1c192205b5b7e1a9555018bf775e6f07)gitlab-35-mergerequest-64.json (SHA-256
a0703ecb7e8d45d162f7720cc347815554f49f40580c1786a7586d52381d67a8)Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.