Skip to content

Commit

Permalink
Remove unnecessary test for Ash Wednesday.
Browse files Browse the repository at this point in the history
  • Loading branch information
oraneedwards committed Jan 28, 2024
1 parent 8242261 commit 74751b0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/Countries/JamaicaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@
expect(formatDates($holidays))->toMatchSnapshot();
});

it('can calculate correct day of week for ash wendesday', function ($year) {
CarbonImmutable::setTestNowAndTimezone($year.'-01-01');

$holidays = Holidays::for(country: 'jm')->get();
$ashWednesday = $holidays[array_search('Ash Wednesday', array_column($holidays, 'name'))];

expect($ashWednesday['date']->dayOfWeek)->toBe(3);

})->with([2023, 2024]);

it('can calculate observed holidays based on year', function () {

// Check for Observed New Year's Day
Expand Down

0 comments on commit 74751b0

Please sign in to comment.