Skip to content

Commit

Permalink
Merge remote-tracking branch 'herp/issue-193' into issue-193
Browse files Browse the repository at this point in the history
  • Loading branch information
herpaderpaldent committed Jan 29, 2024
2 parents 313c8a6 + c3ab379 commit 1e7f787
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/Countries/SwitzerlandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
dataset('languages', [
'de',
'fr',
'it'
'it',
]);

it('can calculate swiss holidays', function () {
Expand Down Expand Up @@ -68,14 +68,12 @@
expect(formatDates($holidays))->toMatchSnapshot();
})->with('cantons');


it('throws an error when an invalid region is given', function () {
$switzerland = new Switzerland('ch-xx');
$holidays = Holidays::for($switzerland)->get();

})->throws(InvalidRegion::class);


it('does not have ephinay holiday at zh', function () {
CarbonImmutable::setTestNowAndTimezone('2024-01-01');

Expand Down Expand Up @@ -107,7 +105,7 @@
it('has sets jeune genevois to thursday following the first sunday in september', function (int $year, string $date) {
CarbonImmutable::setTestNowAndTimezone("$year-01-01");

$switzerland = new Switzerland("ch-ge");
$switzerland = new Switzerland('ch-ge');
$holidays = Holidays::for($switzerland);

expect($holidays->isHoliday($date))->toBeTrue();
Expand Down Expand Up @@ -139,6 +137,5 @@
'tg',
'ne',
'ju',
'ti'
'ti',
]);

0 comments on commit 1e7f787

Please sign in to comment.