From fe950964cc533f83ec0443f778bc9c345f2e603a Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Wed, 17 Jan 2024 12:21:13 +0100 Subject: [PATCH] wip --- .../it_can_calculate_hungarian_holidays.snap | 22 +++++++++---------- .../it_can_calculate_dutch_holidays.snap | 22 +++++++++---------- tests/Countries/HungaryTest.php | 2 +- tests/Countries/NetherlandsTest.php | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/.pest/snapshots/Countries/HungaryTest/it_can_calculate_hungarian_holidays.snap b/tests/.pest/snapshots/Countries/HungaryTest/it_can_calculate_hungarian_holidays.snap index 770fbfed8..fdf6a2679 100644 --- a/tests/.pest/snapshots/Countries/HungaryTest/it_can_calculate_hungarian_holidays.snap +++ b/tests/.pest/snapshots/Countries/HungaryTest/it_can_calculate_hungarian_holidays.snap @@ -1,46 +1,46 @@ [ { "name": "\u00daj\u00e9v", - "date": "2024-01-01T00:00:00.000000Z" + "date": "2024-01-01" }, { "name": "1848-as forradalom \u00e9vfordul\u00f3ja", - "date": "2024-03-15T00:00:00.000000Z" + "date": "2024-03-15" }, { "name": "Nagyp\u00e9ntek", - "date": "2024-03-28T23:00:00.000000Z" + "date": "2024-03-29" }, { "name": "H\u00fasv\u00e9th\u00e9tf\u0151", - "date": "2024-03-31T22:00:00.000000Z" + "date": "2024-04-01" }, { "name": "A munka \u00fcnnepe", - "date": "2024-05-01T00:00:00.000000Z" + "date": "2024-05-01" }, { "name": "P\u00fcnk\u00f6sdh\u00e9tf\u0151", - "date": "2024-05-19T22:00:00.000000Z" + "date": "2024-05-20" }, { "name": "\u00c1llamalap\u00edt\u00e1s \u00fcnnepe", - "date": "2024-08-20T00:00:00.000000Z" + "date": "2024-08-20" }, { "name": "1956-os forradalom \u00e9vfordul\u00f3ja", - "date": "2024-10-23T00:00:00.000000Z" + "date": "2024-10-23" }, { "name": "Mindenszentek", - "date": "2024-11-01T00:00:00.000000Z" + "date": "2024-11-01" }, { "name": "Kar\u00e1csony", - "date": "2024-12-25T00:00:00.000000Z" + "date": "2024-12-25" }, { "name": "Kar\u00e1csony m\u00e1snapja", - "date": "2024-12-26T00:00:00.000000Z" + "date": "2024-12-26" } ] \ No newline at end of file diff --git a/tests/.pest/snapshots/Countries/NetherlandsTest/it_can_calculate_dutch_holidays.snap b/tests/.pest/snapshots/Countries/NetherlandsTest/it_can_calculate_dutch_holidays.snap index 3a30875e5..b092aca2b 100644 --- a/tests/.pest/snapshots/Countries/NetherlandsTest/it_can_calculate_dutch_holidays.snap +++ b/tests/.pest/snapshots/Countries/NetherlandsTest/it_can_calculate_dutch_holidays.snap @@ -1,46 +1,46 @@ [ { "name": "Nieuwjaar", - "date": "2024-01-01T00:00:00.000000Z" + "date": "2024-01-01" }, { "name": "Goede vrijdag", - "date": "2024-03-28T23:00:00.000000Z" + "date": "2024-03-29" }, { "name": "Paasmaandag", - "date": "2024-03-31T22:00:00.000000Z" + "date": "2024-04-01" }, { "name": "Koningsdag", - "date": "2024-04-27T00:00:00.000000Z" + "date": "2024-04-27" }, { "name": "Bevrijdingsdag", - "date": "2024-05-05T00:00:00.000000Z" + "date": "2024-05-05" }, { "name": "OLH Hemelvaart", - "date": "2024-05-08T22:00:00.000000Z" + "date": "2024-05-09" }, { "name": "Pinksteren", - "date": "2024-05-18T22:00:00.000000Z" + "date": "2024-05-19" }, { "name": "Pinkstermaandag", - "date": "2024-05-19T22:00:00.000000Z" + "date": "2024-05-20" }, { "name": "Kerstmis", - "date": "2024-12-25T00:00:00.000000Z" + "date": "2024-12-25" }, { "name": "2de Kerstdag", - "date": "2024-12-26T00:00:00.000000Z" + "date": "2024-12-26" }, { "name": "Oudjaar", - "date": "2024-12-31T00:00:00.000000Z" + "date": "2024-12-31" } ] \ No newline at end of file diff --git a/tests/Countries/HungaryTest.php b/tests/Countries/HungaryTest.php index 82ee64c9b..f1c20ab25 100644 --- a/tests/Countries/HungaryTest.php +++ b/tests/Countries/HungaryTest.php @@ -14,6 +14,6 @@ ->toBeArray() ->not()->toBeEmpty(); - expect($holidays)->toMatchSnapshot(); + expect(formatDates($holidays))->toMatchSnapshot(); }); diff --git a/tests/Countries/NetherlandsTest.php b/tests/Countries/NetherlandsTest.php index a0b708ba5..993201976 100644 --- a/tests/Countries/NetherlandsTest.php +++ b/tests/Countries/NetherlandsTest.php @@ -14,6 +14,6 @@ ->toBeArray() ->not()->toBeEmpty(); - expect($holidays)->toMatchSnapshot(); + expect(formatDates($holidays))->toMatchSnapshot(); });