From 64f099d97e275a4ba59147d1fb2c5fef7b234e4f Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sat, 16 Apr 2022 10:15:18 -0400 Subject: [PATCH] Update StandardMenubarHandlerTests.swift --- Clocker/ClockerUnitTests/StandardMenubarHandlerTests.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Clocker/ClockerUnitTests/StandardMenubarHandlerTests.swift b/Clocker/ClockerUnitTests/StandardMenubarHandlerTests.swift index 5cc24ee..e999808 100644 --- a/Clocker/ClockerUnitTests/StandardMenubarHandlerTests.swift +++ b/Clocker/ClockerUnitTests/StandardMenubarHandlerTests.swift @@ -19,10 +19,7 @@ class StandardMenubarHandlerTests: XCTestCase { private func makeMockStore(with menubarMode: Int = 1) -> DataStore { // Wipe all timezones from UserDefaults - guard let defaults = UserDefaults(suiteName: "com.abhishek.Clocker.StandardMenubarHandlerTests") else { - XCTFail("User defaults couldn't be initialized") - return DataStore.shared() - } + let defaults = UserDefaults(suiteName: "com.abhishek.Clocker.StandardMenubarHandlerTests")! defaults.set(menubarMode, forKey: CLMenubarCompactMode) defaults.set(0, forKey: CLShowMeetingInMenubar) XCTAssertNotEqual(defaults, UserDefaults.standard)