Testing friendlyNextDeliveryTime core functionality ================================================ Mock current time: 2025-12-15 12:00:00 UTC ✓ Test 1 PASSED: timestamp=NULL, timezone=UTC => 'scheduled' ✓ Test 2 PASSED: timestamp=empty, timezone=UTC => 'scheduled' ✓ Test 3 PASSED: timestamp=1970-01-01 00:00:00, timezone=UTC => 'scheduled' ✓ Test 4 PASSED: timestamp=2025-12-15 14:00:00, timezone=UTC => 'this afternoon' ✓ Test 5 PASSED: timestamp=2025-12-15 17:00:00, timezone=UTC => 'this afternoon' ✓ Test 6 PASSED: timestamp=2025-12-15 19:00:00, timezone=UTC => 'this evening' ✓ Test 7 PASSED: timestamp=2025-12-16 09:00:00, timezone=UTC => 'tomorrow morning' ✓ Test 8 PASSED: timestamp=2025-12-16 14:00:00, timezone=UTC => 'tomorrow afternoon' ✓ Test 9 PASSED: timestamp=2025-12-16 19:00:00, timezone=UTC => 'tomorrow evening' ✓ Test 10 PASSED: timestamp=2025-12-15 18:00:00, timezone=UTC => 'this evening' ✓ Test 11 PASSED: timestamp=2025-12-17 10:00:00, timezone=UTC => 'in 2 days' ✓ Test 12 PASSED: timestamp=2025-12-18 10:00:00, timezone=UTC => 'in 3 days' ✓ Test 13 PASSED: timestamp=2025-12-20 10:00:00, timezone=UTC => 'in 5 days' ✓ Test 14 PASSED: timestamp=2025-12-29 10:00:00, timezone=UTC => 'in 14 days' ✓ Test 15 PASSED: timestamp=2025-12-15 10:00:00, timezone=UTC => 'scheduled' ✓ Test 16 PASSED: timestamp=2025-12-14 10:00:00, timezone=UTC => 'scheduled' ✓ Test 17 PASSED: timestamp=2025-12-15 06:00:00, timezone=UTC => 'scheduled' ✓ Test 18 PASSED: timestamp=2025-12-15 11:59:00, timezone=UTC => 'scheduled' ✓ Test 19 PASSED: timestamp=2025-12-15 13:00:00, timezone=UTC => 'this afternoon' ✓ Test 20 PASSED: timestamp=2025-12-15 12:00:00, timezone=UTC => 'this afternoon' ✓ Test 21 PASSED: timestamp=2025-12-15 17:59:00, timezone=UTC => 'this afternoon' ✓ Test 22 PASSED: timestamp=2025-12-15 18:00:00, timezone=UTC => 'this evening' ✓ Test 23 PASSED: timestamp=2025-12-15 23:59:00, timezone=UTC => 'this evening' ✓ Test 24 PASSED: timestamp=2025-12-15 14:00:00, timezone=America/New_York => 'this morning' ✓ Test 25 PASSED: timestamp=2025-12-15 19:00:00, timezone=Europe/London => 'this evening' ✓ Test 26 PASSED: timestamp=1970-01-01 00:00:00, timezone=UTC => 'scheduled' ================================================ Test Results: 26/26 passed 🎉 All core logic tests passed!