Stabilize unit and UI tests for SportsTime
This commit is contained in:
@@ -113,7 +113,7 @@ struct TripPlanningEngineTests {
|
||||
|
||||
@Test("effectiveTripDuration: calculates from date range when tripDuration is nil")
|
||||
func effectiveTripDuration_calculated() {
|
||||
let calendar = Calendar.current
|
||||
let calendar = TestClock.calendar
|
||||
let startDate = calendar.date(from: DateComponents(year: 2026, month: 6, day: 15))!
|
||||
let endDate = calendar.date(from: DateComponents(year: 2026, month: 6, day: 22))!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user