From 311be1797aab77de54615faa706dc9c9e8d25baf Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Tue, 29 Mar 2022 21:14:34 -0400 Subject: [PATCH] Call setupMenubarTimer to refresh menubar mode and fix test. --- Clocker/ClockerUnitTests/AppDelegateTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Clocker/ClockerUnitTests/AppDelegateTests.swift b/Clocker/ClockerUnitTests/AppDelegateTests.swift index 23ffaae..865b95f 100644 --- a/Clocker/ClockerUnitTests/AppDelegateTests.swift +++ b/Clocker/ClockerUnitTests/AppDelegateTests.swift @@ -117,6 +117,7 @@ class AppDelegateTests: XCTestCase { let subject = NSApplication.shared.delegate as? AppDelegate let statusItemHandler = subject?.statusItemForPanel() + subject?.setupMenubarTimer() XCTAssertEqual(statusItemHandler?.statusItem.button?.image?.name(), "LightModeIcon")