From 08a5c01990e745e5660a700dc9940a9a378675a3 Mon Sep 17 00:00:00 2001 From: Selim Mustafaev Date: Tue, 24 Dec 2024 21:08:07 +0300 Subject: [PATCH] Fixing tests --- AutoCatCore/DependencyInjection/ServiceContainer.swift | 2 +- AutoCatCoreTests/LocationServiceTests.swift | 1 + AutoCatTests/LocationPickerTests.swift | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AutoCatCore/DependencyInjection/ServiceContainer.swift b/AutoCatCore/DependencyInjection/ServiceContainer.swift index 5b26e74..1cbd45e 100644 --- a/AutoCatCore/DependencyInjection/ServiceContainer.swift +++ b/AutoCatCore/DependencyInjection/ServiceContainer.swift @@ -41,7 +41,7 @@ public class ServiceContainer { cache[String(describing: service.self)] = instance } - public func resolve(_ service: Service.Type) throws -> Service { + public func resolve(_ service: Service.Type) -> Service { let type = String(describing: service.self) diff --git a/AutoCatCoreTests/LocationServiceTests.swift b/AutoCatCoreTests/LocationServiceTests.swift index d937d6a..c125145 100644 --- a/AutoCatCoreTests/LocationServiceTests.swift +++ b/AutoCatCoreTests/LocationServiceTests.swift @@ -10,6 +10,7 @@ import Testing import CoreLocation import Mockable import Intents +import Contacts @testable import AutoCatCore @MainActor diff --git a/AutoCatTests/LocationPickerTests.swift b/AutoCatTests/LocationPickerTests.swift index 5f1e0a3..f5eb4d0 100644 --- a/AutoCatTests/LocationPickerTests.swift +++ b/AutoCatTests/LocationPickerTests.swift @@ -10,6 +10,7 @@ import Testing import CoreLocation import Mockable import Intents +import Contacts @testable import AutoCat @testable import AutoCatCore