Browse Source

Test fixing..

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
5537484a27
  1. 2
      Clocker/ClockerUnitTests/AppDelegateTests.swift
  2. 2
      Clocker/ClockerUnitTests/ThemerTests.swift

2
Clocker/ClockerUnitTests/AppDelegateTests.swift

@ -130,7 +130,7 @@ class AppDelegateTests: XCTestCase {
subject?.setupMenubarTimer()
XCTAssertNil(statusItemHandler?.statusItem.view) // This won't be nil for compact mode
XCTAssertNil(subject?.statusItemForPanel().statusItem.view) // This will be nil for standard mode
DataStore.shared().setTimezones([])

2
Clocker/ClockerUnitTests/ThemerTests.swift

@ -159,7 +159,7 @@ class ThemerTests: XCTestCase {
let expectedSliderRightColor = currentSystemTheme == .dark ? NSColor.white : NSColor.gray
let expectedBackgroundColor = currentSystemTheme == .dark ? NSColor.windowBackgroundColor : NSColor.white
let expectedTextColor = NSColor.textColor
let expectedTextBackgroundColor = currentSystemTheme == .light ? NSColor(deviceRed: 42.0 / 255.0, green: 55.0 / 255.0, blue: 62.0 / 255.0, alpha: 1.0) : NSColor.controlBackgroundColor
let expectedTextBackgroundColor = currentSystemTheme == .light ? NSColor(deviceRed: 241.0 / 255.0, green: 241.0 / 255.0, blue: 241.0 / 255.0, alpha: 1.0) : NSColor.controlBackgroundColor
let expectedShutdownImageName = "ellipsis.circle"
let expectedPreferenceImageName = "plus"

Loading…
Cancel
Save