Browse Source

Call setupMenubarTimer to refresh menubar mode and fix test.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
311be1797a
  1. 1
      Clocker/ClockerUnitTests/AppDelegateTests.swift

1
Clocker/ClockerUnitTests/AppDelegateTests.swift

@ -117,6 +117,7 @@ class AppDelegateTests: XCTestCase {
let subject = NSApplication.shared.delegate as? AppDelegate let subject = NSApplication.shared.delegate as? AppDelegate
let statusItemHandler = subject?.statusItemForPanel() let statusItemHandler = subject?.statusItemForPanel()
subject?.setupMenubarTimer()
XCTAssertEqual(statusItemHandler?.statusItem.button?.image?.name(), "LightModeIcon") XCTAssertEqual(statusItemHandler?.statusItem.button?.image?.name(), "LightModeIcon")

Loading…
Cancel
Save