Skip to content

Commit

Permalink
Update Date Picker test to start from now to fix test failure (#1477)…
Browse files Browse the repository at this point in the history
… (#1481)

* Update Date Picker test to start from today

* Add explicit type interface
  • Loading branch information
huwilkes authored Jan 4, 2023
1 parent dc8f327 commit e3d0b95
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ios/FluentUI.Tests/DatePickerControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import XCTest
@testable import FluentUI

class DatePickerControllerTests: XCTestCase {
static let testDateInterval: TimeInterval = 1551903381

let startDate = Date(timeIntervalSince1970: DatePickerControllerTests.testDateInterval)
let endDate = Date(timeIntervalSince1970: DatePickerControllerTests.testDateInterval).adding(days: 1)
let startDate: Date = NSDate.now
let endDate: Date = NSDate.now.adding(days: 1)

func testDateRangeInit() {
let datePicker = DatePickerController(startDate: startDate, endDate: endDate, calendarConfiguration: CalendarConfiguration.default, mode: .dateRange, rangePresentation: .paged, titles: nil, leftBarButtonItem: nil, rightBarButtonItem: nil)
Expand Down

0 comments on commit e3d0b95

Please sign in to comment.