Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Jan 27, 2024
1 parent 9bb7bb2 commit 40048aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Countries/VietnamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Spatie\Holidays\Holidays;

it('can calculate vietnamese holidays', function () {
CarbonImmutable::setTestNowAndTimezone('2024-01-01', 'Asia/Ho_Chi_Minh');
CarbonImmutable::setTestNow('2024-01-01');

$holidays = Holidays::for(country: 'vn')->get();

Expand All @@ -18,7 +18,7 @@
});

it('can calculate the Lunar New Year holiday', function ($year, $expectedHoliday) {
CarbonImmutable::setTestNowAndTimezone("{$year}-01-01", 'Asia/Ho_Chi_Minh');
CarbonImmutable::setTestNow("{$year}-01-01");

$holidays = Holidays::for(country: 'vn')->get();

Expand All @@ -38,7 +38,7 @@
]);

it('can calculate the holiday of independence', function ($year, $expectedHoliday) {
CarbonImmutable::setTestNowAndTimezone("{$year}-01-01", 'Asia/Ho_Chi_Minh');
CarbonImmutable::setTestNow("{$year}-01-01");

$holidays = Holidays::for(country: 'vn')->get();

Expand Down

0 comments on commit 40048aa

Please sign in to comment.