Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach authored and github-actions[bot] committed Apr 29, 2024
1 parent 9b1817b commit aa2721c
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions tests/Countries/KoreaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,34 @@
->toBeArray()
->not()->toBeEmpty();

$lunarNewYearHoliday = array_map(fn($date) => $date['date'], formatDates($holidays));
$lunarNewYearHoliday = array_map(fn ($date) => $date['date'], formatDates($holidays));

expect($lunarNewYearHoliday)->toContain(...$expectedHoliday);
})->with([
[
'year' => 2024, 'expected_holiday' => [
'2024-02-09', '2024-02-10', '2024-02-11'
]
'2024-02-09', '2024-02-10', '2024-02-11',
],
],
[
'year' => 2023, 'expected_holiday' => [
'2023-01-21', '2023-01-22', '2023-01-23'
]
'2023-01-21', '2023-01-22', '2023-01-23',
],
],
[
'year' => 2022, 'expected_holiday' => [
'2022-01-31', '2022-02-01', '2022-02-02'
]
'2022-01-31', '2022-02-01', '2022-02-02',
],
],
[
'year' => 2021, 'expected_holiday' => [
'2021-02-11', '2021-02-12', '2021-02-13'
]
'2021-02-11', '2021-02-12', '2021-02-13',
],
],
[
'year' => 2020, 'expected_holiday' => [
'2020-01-24', '2020-01-25', '2020-01-26'
]
'2020-01-24', '2020-01-25', '2020-01-26',
],
],
]);

Expand All @@ -65,13 +65,13 @@
->toBeArray()
->not()->toBeEmpty();

$dates = array_map(fn($date) => $date['date'], formatDates($holidays));
$dates = array_map(fn ($date) => $date['date'], formatDates($holidays));

expect($dates)->toContain(...$expectedHoliday);
})->with([
['year' => 2024, 'expected_holiday' => ['2024-05-15']],
['year' => 2023, 'expected_holiday' => ['2023-05-26']],
['year' => 2022, 'expected_holiday' => ['2022-05-08']]
['year' => 2022, 'expected_holiday' => ['2022-05-08']],
]);

it('can calculate the Lunar Chuseok holiday', function ($year, $expectedHoliday) {
Expand All @@ -83,33 +83,33 @@
->toBeArray()
->not()->toBeEmpty();

$lunarNewYearHoliday = array_map(fn($date) => $date['date'], formatDates($holidays));
$lunarNewYearHoliday = array_map(fn ($date) => $date['date'], formatDates($holidays));

expect($lunarNewYearHoliday)->toContain(...$expectedHoliday);
})->with([
[
'year' => 2024, 'expected_holiday' => [
'2024-09-16', '2024-09-17', '2024-09-18'
]
'2024-09-16', '2024-09-17', '2024-09-18',
],
],
[
'year' => 2023, 'expected_holiday' => [
'2023-09-28', '2023-09-29', '2023-09-30'
]
'2023-09-28', '2023-09-29', '2023-09-30',
],
],
[
'year' => 2022, 'expected_holiday' => [
'2022-09-09', '2022-09-10', '2022-09-11'
]
'2022-09-09', '2022-09-10', '2022-09-11',
],
],
[
'year' => 2021, 'expected_holiday' => [
'2021-09-20', '2021-09-21', '2021-09-22'
]
'2021-09-20', '2021-09-21', '2021-09-22',
],
],
[
'year' => 2020, 'expected_holiday' => [
'2020-09-30', '2020-10-01', '2020-10-02'
]
]
'2020-09-30', '2020-10-01', '2020-10-02',
],
],
]);

0 comments on commit aa2721c

Please sign in to comment.