Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Dec 7, 2024
1 parent 0531595 commit 5198e68
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion DuckDuckGoTests/OnboardingDaxFavouritesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import RemoteMessaging
import Configuration
import Core
import SubscriptionTestingUtilities
import Common
@testable import DuckDuckGo

final class OnboardingDaxFavouritesTests: XCTestCase {
Expand All @@ -47,7 +48,8 @@ final class OnboardingDaxFavouritesTests: XCTestCase {
settingHandlers: [],
favoritesDisplayModeStorage: MockFavoritesDisplayModeStoring(),
syncErrorHandler: SyncErrorHandler(),
faviconStoring: MockFaviconStore()
faviconStoring: MockFaviconStore(),
tld: TLD()
)

let remoteMessagingClient = RemoteMessagingClient(
Expand Down
4 changes: 3 additions & 1 deletion DuckDuckGoTests/OnboardingNavigationDelegateTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import RemoteMessaging
import Configuration
import Combine
import SubscriptionTestingUtilities
import Common
@testable import DuckDuckGo
@testable import Core

Expand All @@ -47,7 +48,8 @@ final class OnboardingNavigationDelegateTests: XCTestCase {
settingHandlers: [],
favoritesDisplayModeStorage: MockFavoritesDisplayModeStoring(),
syncErrorHandler: SyncErrorHandler(),
faviconStoring: MockFaviconStore()
faviconStoring: MockFaviconStore(),
tld: TLD()
)

let remoteMessagingClient = RemoteMessagingClient(
Expand Down
3 changes: 2 additions & 1 deletion DuckDuckGoTests/SyncCredentialsAdapterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Combine
import DDGSync
import SecureStorage
import Core
import Common
@testable import DuckDuckGo

final class SyncCredentialsAdapterTests: XCTestCase {
Expand All @@ -34,7 +35,7 @@ final class SyncCredentialsAdapterTests: XCTestCase {

override func setUpWithError() throws {
errorHandler = CapturingAdapterErrorHandler()
adapter = SyncCredentialsAdapter(secureVaultErrorReporter: MockSecureVaultReporting(), syncErrorHandler: errorHandler)
adapter = SyncCredentialsAdapter(secureVaultErrorReporter: MockSecureVaultReporting(), syncErrorHandler: errorHandler, tld: TLD())
cancellables = []
}

Expand Down
4 changes: 3 additions & 1 deletion DuckDuckGoTests/SyncSettingsViewControllerErrorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Core
import Combine
import DDGSync
import Persistence
import Common

final class SyncSettingsViewControllerErrorTests: XCTestCase {

Expand Down Expand Up @@ -53,7 +54,8 @@ final class SyncSettingsViewControllerErrorTests: XCTestCase {
faviconStoring: MockFaviconStore())
let credentialsAdapter = SyncCredentialsAdapter(
secureVaultErrorReporter: MockSecureVaultReporting(),
syncErrorHandler: CapturingAdapterErrorHandler())
syncErrorHandler: CapturingAdapterErrorHandler(),
tld: TLD())
vc = SyncSettingsViewController(
syncService: ddgSyncing,
syncBookmarksAdapter: bookmarksAdapter,
Expand Down

0 comments on commit 5198e68

Please sign in to comment.