generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(holiday): Utamaduni day renamed to Mazingira day (#245)
* update(holiday): Utamaduni day renamed to Mazingira day * Update holiday names to match the Public Holidays Act in Kenya * feat: Add dynamic October 10th holiday naming for Kenya - Introduced logic to dynamically calculate the name of the October 10th holiday based on the year: - Mazingira Day for 2024 and beyond - Utamaduni Day from 2022-2023 - Huduma Day from 2019-2021 - Moi Day for 2018 and earlier - Updated test cases to validate holiday names across different years.
- Loading branch information
Showing
7 changed files
with
253 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...apshots/Countries/KenyaTest/it_calculates_October_10th_holiday_as_Huduma_Day_in_2021.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day", | ||
"date": "2021-01-01" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2021-04-02" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2021-04-05" | ||
}, | ||
{ | ||
"name": "Labour day", | ||
"date": "2021-05-01" | ||
}, | ||
{ | ||
"name": "Madaraka Day", | ||
"date": "2021-06-01" | ||
}, | ||
{ | ||
"name": "Huduma Day", | ||
"date": "2021-10-10" | ||
}, | ||
{ | ||
"name": "Mashujaa Day", | ||
"date": "2021-10-20" | ||
}, | ||
{ | ||
"name": "Jamhuri Day", | ||
"date": "2021-12-01" | ||
}, | ||
{ | ||
"name": "Christmas", | ||
"date": "2021-12-25" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2021-12-26" | ||
} | ||
] |
42 changes: 42 additions & 0 deletions
42
...hots/Countries/KenyaTest/it_calculates_October_10th_holiday_as_Mazingira_Day_in_2024.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day", | ||
"date": "2024-01-01" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2024-03-29" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2024-04-01" | ||
}, | ||
{ | ||
"name": "Labour day", | ||
"date": "2024-05-01" | ||
}, | ||
{ | ||
"name": "Madaraka Day", | ||
"date": "2024-06-01" | ||
}, | ||
{ | ||
"name": "Mazingira Day", | ||
"date": "2024-10-10" | ||
}, | ||
{ | ||
"name": "Mashujaa Day", | ||
"date": "2024-10-20" | ||
}, | ||
{ | ||
"name": "Jamhuri Day", | ||
"date": "2024-12-01" | ||
}, | ||
{ | ||
"name": "Christmas", | ||
"date": "2024-12-25" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2024-12-26" | ||
} | ||
] |
42 changes: 42 additions & 0 deletions
42
...pshots/Countries/KenyaTest/it_calculates_October_10th_holiday_as_Moi_Day_before_2019.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day", | ||
"date": "2018-01-01" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2018-03-30" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2018-04-02" | ||
}, | ||
{ | ||
"name": "Labour day", | ||
"date": "2018-05-01" | ||
}, | ||
{ | ||
"name": "Madaraka Day", | ||
"date": "2018-06-01" | ||
}, | ||
{ | ||
"name": "Moi Day", | ||
"date": "2018-10-10" | ||
}, | ||
{ | ||
"name": "Mashujaa Day", | ||
"date": "2018-10-20" | ||
}, | ||
{ | ||
"name": "Jamhuri Day", | ||
"date": "2018-12-01" | ||
}, | ||
{ | ||
"name": "Christmas", | ||
"date": "2018-12-25" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2018-12-26" | ||
} | ||
] |
42 changes: 42 additions & 0 deletions
42
...hots/Countries/KenyaTest/it_calculates_October_10th_holiday_as_Utamaduni_Day_in_2023.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day", | ||
"date": "2023-01-01" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2023-04-07" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2023-04-10" | ||
}, | ||
{ | ||
"name": "Labour day", | ||
"date": "2023-05-01" | ||
}, | ||
{ | ||
"name": "Madaraka Day", | ||
"date": "2023-06-01" | ||
}, | ||
{ | ||
"name": "Utamaduni Day", | ||
"date": "2023-10-10" | ||
}, | ||
{ | ||
"name": "Mashujaa Day", | ||
"date": "2023-10-20" | ||
}, | ||
{ | ||
"name": "Jamhuri Day", | ||
"date": "2023-12-01" | ||
}, | ||
{ | ||
"name": "Christmas", | ||
"date": "2023-12-25" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2023-12-26" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters