From 5537484a27f8f2185129be880b31d05ccd00303a Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Tue, 29 Mar 2022 17:49:32 -0400 Subject: [PATCH] Test fixing.. --- Clocker/ClockerUnitTests/AppDelegateTests.swift | 2 +- Clocker/ClockerUnitTests/ThemerTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Clocker/ClockerUnitTests/AppDelegateTests.swift b/Clocker/ClockerUnitTests/AppDelegateTests.swift index 3bd6ee5..23ffaae 100644 --- a/Clocker/ClockerUnitTests/AppDelegateTests.swift +++ b/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([]) diff --git a/Clocker/ClockerUnitTests/ThemerTests.swift b/Clocker/ClockerUnitTests/ThemerTests.swift index 28c786f..47a9f69 100644 --- a/Clocker/ClockerUnitTests/ThemerTests.swift +++ b/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"