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
… (#1478)

* Update Date Picker test to start from today

* Add explicit type interface

Co-authored-by: huwilkes <67026548+huwilkes@users.noreply.github.com>
  • Loading branch information
laminesm and huwilkes committed Jan 4, 2023
1 parent ab685fb commit 32a1c4a
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 32a1c4a

Please sign in to comment.