|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
// Copyright © 2015 Abhishek Banthia |
|
|
|
|
|
|
|
|
|
import CoreModelKit |
|
|
|
|
import XCTest |
|
|
|
|
import EventKit |
|
|
|
|
import XCTest |
|
|
|
|
|
|
|
|
|
@testable import Clocker |
|
|
|
|
|
|
|
|
@ -128,7 +128,6 @@ class StandardMenubarHandlerTests: XCTestCase {
|
|
|
|
|
let menubarHandler = MenubarTitleProvider(with: store) |
|
|
|
|
XCTAssert(menubarHandler.format(event: mockEvent) == "Mock Title in 10m", |
|
|
|
|
"Suffix \(menubarHandler.format(event: mockEvent)) doesn't match expectation") |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func testUpcomingEventHappeningWithinOneMinute() { |
|
|
|
@ -142,7 +141,6 @@ class StandardMenubarHandlerTests: XCTestCase {
|
|
|
|
|
let menubarHandler = MenubarTitleProvider(with: store) |
|
|
|
|
XCTAssert(menubarHandler.format(event: mockEvent) == "Mock Title in 1m", |
|
|
|
|
"Suffix \(menubarHandler.format(event: mockEvent)) doesn't match expectation") |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func testUpcomingEventHappeningWithinSeconds() { |
|
|
|
@ -156,7 +154,6 @@ class StandardMenubarHandlerTests: XCTestCase {
|
|
|
|
|
let menubarHandler = MenubarTitleProvider(with: store) |
|
|
|
|
XCTAssert(menubarHandler.format(event: mockEvent) == "Mock Title starts now.", |
|
|
|
|
"Suffix \(menubarHandler.format(event: mockEvent)) doesn't match expectation") |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func testEmptyUpcomingEvent() { |
|
|
|
@ -169,7 +166,6 @@ class StandardMenubarHandlerTests: XCTestCase {
|
|
|
|
|
let menubarHandler = MenubarTitleProvider(with: store) |
|
|
|
|
XCTAssert(menubarHandler.format(event: mockEvent) == CLEmptyString, |
|
|
|
|
"Suffix \(menubarHandler.format(event: mockEvent)) doesn't match expectation") |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func testLongUpcomingEvent() { |
|
|
|
@ -183,6 +179,5 @@ class StandardMenubarHandlerTests: XCTestCase {
|
|
|
|
|
let menubarHandler = MenubarTitleProvider(with: store) |
|
|
|
|
XCTAssert(menubarHandler.format(event: mockEvent) == "Really long calendar event tit... starts now.", |
|
|
|
|
"Suffix \(menubarHandler.format(event: mockEvent)) doesn't match expectation") |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|