Skip to content

Commit e6d60f1

Browse files
committed
Update unit tests
1 parent 72571ae commit e6d60f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/WooCommerceTests/ViewRelated/Dashboard/Analytics Hub/AnalyticsHubTimeRangeSelectionTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ final class AnalyticsHubTimeRangeSelectionTests: XCTestCase {
418418

419419
func test_custom_ranges_generates_expected_descriptions() throws {
420420
// Given
421-
let start = startDate(from: "2022-12-05")
422-
let end = endDate(from: "2022-12-07")
421+
let start = startDate(from: "2022-12-05") ?? Date()
422+
let end = endDate(from: "2022-12-07") ?? Date()
423423
let timeRange = AnalyticsHubTimeRangeSelection(selectionType: .custom(start: start, end: end),
424424
timezone: testTimezone,
425425
calendar: testCalendar)

0 commit comments

Comments
 (0)