@ -7,7 +7,7 @@ import CoreModelKit
class LocationController: NSObject {
private let store: DataStore
init(withStore dataStore: DataStore) {
store = dataStore
super.init()
@ -76,7 +76,7 @@ class EventInfoTests: XCTestCase {
XCTAssert(mockEventInfo.metadataForMeeting() == "in 25h",
"Metadata for meeting: \(mockEventInfo.metadataForMeeting()) doesn't match expectation")
}
func testMetadataForEventHappeningAfterAnHour() throws {
let pastChunk = TimeChunk(seconds: 10, minutes: 10, hours: 1, days: 0, weeks: 0, months: 0, years: 0)
let mockEvent = EKEvent(eventStore: eventStore)
@ -90,7 +90,7 @@ class EventInfoTests: XCTestCase {
XCTAssert(mockEventInfo.metadataForMeeting() == "in 1h",
func testMetadataForEventHappeningAfterThreeHours() throws {
let pastChunk = TimeChunk(seconds: 10, minutes: 10, hours: 3, days: 0, weeks: 0, months: 0, years: 0)
@ -140,7 +140,7 @@ class ReviewControllerTests: XCTestCase {
XCTAssertNotNil(mockDefaults.object(forKey: "last-version"))
mockDefaults.removeSuite(named: mockSuite)
private func randomLetter() -> String {
let alphabet: [String] = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
return alphabet[Int(arc4random_uniform(26))]
@ -40,7 +40,7 @@ class OnboardingSearchController: NSViewController {
super.viewDidLoad()
view.wantsLayer = true
searchResultsDataSource = SearchDataSource(with: searchBar, location: .onboarding)
resultsTableView.isHidden = true
@ -45,7 +45,7 @@ class AppDefaults {
Themer.shared().set(theme: 0)
private class func defaultsDictionary() -> [String: Any] {
return [CLThemeKey: 0,
CLDisplayFutureSliderKey: 0,