Skip to content

Commit

Permalink
Fix Swiftlint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Sep 11, 2024
1 parent 0d03459 commit 640edd3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,3 @@ extension BrowsersComparisonModel.PrivacyFeature {
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ struct OnboardingCTAButton: View {
}

#Preview("Final Dialog") {
OnboardingFinalDialog(message: UserText.DaxOnboardingExperiment.ContextualOnboarding.onboardingFinalScreenMessage, highFiveAction: {})
OnboardingFinalDialog(message: UserText.DaxOnboardingExperiment.ContextualOnboarding.onboardingFinalScreenMessage, highFiveAction: {})
.padding()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct OnboardingSuggestedSearchesProvider: OnboardingSuggestionsItemsProviding
let search = if onboardingManager.isOnboardingHighlightsEnabled {
UserText.HighlightsOnboardingExperiment.ContextualOnboarding.tryASearchOptionSurpriseMe
} else {
country == "us" ?
country == "us" ?
UserText.DaxOnboardingExperiment.ContextualOnboarding.tryASearchOptionSurpriseMeEnglish :
UserText.DaxOnboardingExperiment.ContextualOnboarding.tryASearchOptionSurpriseMeInternational
}
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGoTests/BrowserComparisonModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import XCTest
@testable import DuckDuckGo

final class BrowserComparisonModelTests: XCTestCase {
private var onboardingManager: OnboardingsManagerMock!
private var onboardingManager: OnboardingManagerMock!

override func setUpWithError() throws {
try super.setUpWithError()
onboardingManager = OnboardingsManagerMock()
onboardingManager = OnboardingManagerMock()
}

override func tearDownWithError() throws {
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGoTests/OnboardingIntroViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import XCTest
@testable import DuckDuckGo

final class OnboardingIntroViewModelTests: XCTestCase {
private var onboardingManager: OnboardingsManagerMock!
private var onboardingManager: OnboardingManagerMock!

override func setUpWithError() throws {
try super.setUpWithError()
onboardingManager = OnboardingsManagerMock()
onboardingManager = OnboardingManagerMock()
}

override func tearDownWithError() throws {
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGoTests/OnboardingManagerMock.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// OnboardingsManagerMock.swift
// OnboardingManagerMock.swift
// DuckDuckGo
//
// Copyright © 2024 DuckDuckGo. All rights reserved.
Expand All @@ -20,6 +20,6 @@
import Foundation
@testable import DuckDuckGo

final class OnboardingsManagerMock: OnboardingHighlightsManaging {
final class OnboardingManagerMock: OnboardingHighlightsManaging {
var isOnboardingHighlightsEnabled: Bool = false
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import Onboarding
@testable import DuckDuckGo

class OnboardingSuggestedSearchesProviderTests: XCTestCase {
private var onboardingManagerMock: OnboardingsManagerMock!
private var onboardingManagerMock: OnboardingManagerMock!
let userText = UserText.DaxOnboardingExperiment.ContextualOnboarding.self
let highlightsUserText = UserText.HighlightsOnboardingExperiment.ContextualOnboarding.self

override func setUpWithError() throws {
try super.setUpWithError()
onboardingManagerMock = OnboardingsManagerMock()
onboardingManagerMock = OnboardingManagerMock()
}

override func tearDownWithError() throws {
Expand Down

0 comments on commit 640edd3

Please sign in to comment.