|
|
@ -14,10 +14,7 @@ class EventInfoTests: XCTestCase { |
|
|
|
mockEvent.startDate = Date().add(futureChunk) |
|
|
|
mockEvent.startDate = Date().add(futureChunk) |
|
|
|
|
|
|
|
|
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
isStartDate: false, |
|
|
|
|
|
|
|
isEndDate: false, |
|
|
|
|
|
|
|
isAllDay: false, |
|
|
|
isAllDay: false, |
|
|
|
isSingleDay: true, |
|
|
|
|
|
|
|
meetingURL: nil, |
|
|
|
meetingURL: nil, |
|
|
|
attendeStatus: .accepted) |
|
|
|
attendeStatus: .accepted) |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "in 5m", |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "in 5m", |
|
|
@ -31,10 +28,7 @@ class EventInfoTests: XCTestCase { |
|
|
|
mockEvent.startDate = Date().add(futureChunk) |
|
|
|
mockEvent.startDate = Date().add(futureChunk) |
|
|
|
|
|
|
|
|
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
isStartDate: false, |
|
|
|
|
|
|
|
isEndDate: false, |
|
|
|
|
|
|
|
isAllDay: false, |
|
|
|
isAllDay: false, |
|
|
|
isSingleDay: true, |
|
|
|
|
|
|
|
meetingURL: nil, |
|
|
|
meetingURL: nil, |
|
|
|
attendeStatus: .accepted) |
|
|
|
attendeStatus: .accepted) |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "in <1m", |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "in <1m", |
|
|
@ -48,10 +42,7 @@ class EventInfoTests: XCTestCase { |
|
|
|
mockEvent.startDate = Date().subtract(pastChunk) |
|
|
|
mockEvent.startDate = Date().subtract(pastChunk) |
|
|
|
|
|
|
|
|
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
isStartDate: false, |
|
|
|
|
|
|
|
isEndDate: false, |
|
|
|
|
|
|
|
isAllDay: false, |
|
|
|
isAllDay: false, |
|
|
|
isSingleDay: true, |
|
|
|
|
|
|
|
meetingURL: nil, |
|
|
|
meetingURL: nil, |
|
|
|
attendeStatus: .accepted) |
|
|
|
attendeStatus: .accepted) |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "started +2m.", |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "started +2m.", |
|
|
@ -65,10 +56,7 @@ class EventInfoTests: XCTestCase { |
|
|
|
mockEvent.startDate = Date().subtract(pastChunk) |
|
|
|
mockEvent.startDate = Date().subtract(pastChunk) |
|
|
|
|
|
|
|
|
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
isStartDate: false, |
|
|
|
|
|
|
|
isEndDate: false, |
|
|
|
|
|
|
|
isAllDay: false, |
|
|
|
isAllDay: false, |
|
|
|
isSingleDay: true, |
|
|
|
|
|
|
|
meetingURL: nil, |
|
|
|
meetingURL: nil, |
|
|
|
attendeStatus: .accepted) |
|
|
|
attendeStatus: .accepted) |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "Error", |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "Error", |
|
|
@ -82,10 +70,7 @@ class EventInfoTests: XCTestCase { |
|
|
|
mockEvent.startDate = Date().add(pastChunk) |
|
|
|
mockEvent.startDate = Date().add(pastChunk) |
|
|
|
|
|
|
|
|
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
let mockEventInfo = EventInfo(event: mockEvent, |
|
|
|
isStartDate: false, |
|
|
|
|
|
|
|
isEndDate: false, |
|
|
|
|
|
|
|
isAllDay: false, |
|
|
|
isAllDay: false, |
|
|
|
isSingleDay: true, |
|
|
|
|
|
|
|
meetingURL: nil, |
|
|
|
meetingURL: nil, |
|
|
|
attendeStatus: .accepted) |
|
|
|
attendeStatus: .accepted) |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "in 25h", |
|
|
|
XCTAssert(mockEventInfo.metadataForMeeting() == "in 25h", |
|
|
|