Skip to content

Commit

Permalink
Updated suggested websites
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Jul 23, 2024
1 parent 0863028 commit 4f086ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct OnboardingSuggestedSitesProvider: OnboardingSuggestionsItemsProviding {
switch Countries(rawValue: country) {
case .indonesia: site = "bolasport.com"
case .gb: site = "skysports.com"
case .germany: site = "kicker.de"
case .germany: site = "bundesliga.de"
case .canada: site = "tsn.ca"
case .netherlands: site = "voetbalprimeur.nl"
case .australia: site = "afl.com.au"
Expand All @@ -78,9 +78,9 @@ struct OnboardingSuggestedSitesProvider: OnboardingSuggestionsItemsProviding {
case .indonesia: site = "kompas.com"
case .gb: site = "bbc.co.uk"
case .germany: site = "tagesschau.de"
case .canada: site = "cbc.ca"
case .canada: site = "ctvnews.ca"
case .netherlands: site = "nu.nl"
case .australia: site = "abc.net.au"
case .australia: site = "news.com.au"
case .sweden: site = "dn.se"
case .ireland: site = "bbc.co.uk"
default: site = "yahoo.com"
Expand All @@ -92,7 +92,8 @@ struct OnboardingSuggestedSitesProvider: OnboardingSuggestionsItemsProviding {
let site: String
switch Countries(rawValue: country) {
case .indonesia: site = "tokopedia.com"
case .gb, .germany, .australia, .ireland: site = "eBay.com"
case .gb, .australia, .ireland: site = "eBay.com"
case .germany: site = "galeria.de"
case .canada: site = "canadiantire.ca"
case .netherlands: site = "bol.com"
case .sweden: site = "tradera.com"
Expand All @@ -104,7 +105,7 @@ struct OnboardingSuggestedSitesProvider: OnboardingSuggestionsItemsProviding {
private var surpriseMe: ContextualOnboardingListItem {
let site: String
switch Countries(rawValue: country) {
case .germany: site = "https://www.duden.de/rechtschreibung/Ente"
case .germany: site = "https://dict.leo.org/german-english/Ente"
case .netherlands: site = "https://www.woorden.org/woord/eend"
case .sweden: site = "https://www.synonymer.se/sv-syn/anka"
default: site = "https:britannica.com/animal/duck"
Expand Down
10 changes: 5 additions & 5 deletions DuckDuckGoTests/OnboardingSuggestedSitesProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ class OnboardingSuggestedSitesProviderTests: XCTestCase {
let sitesList = sut.list

// THEN
XCTAssertEqual(sitesList[0], ContextualOnboardingListItem.site(title: scheme + "kicker.de"))
XCTAssertEqual(sitesList[0], ContextualOnboardingListItem.site(title: scheme + "bundesliga.de"))
XCTAssertEqual(sitesList[1], ContextualOnboardingListItem.site(title: scheme + "tagesschau.de"))
XCTAssertEqual(sitesList[2], ContextualOnboardingListItem.site(title: scheme + "eBay.com"))
XCTAssertEqual(sitesList[3], ContextualOnboardingListItem.surprise(title: "https://www.duden.de/rechtschreibung/Ente"))
XCTAssertEqual(sitesList[2], ContextualOnboardingListItem.site(title: scheme + "galeria.de"))
XCTAssertEqual(sitesList[3], ContextualOnboardingListItem.surprise(title: "https://dict.leo.org/german-english/Ente"))
}

func testSuggestedSitesForCanada() {
Expand All @@ -78,7 +78,7 @@ class OnboardingSuggestedSitesProviderTests: XCTestCase {

// THEN
XCTAssertEqual(sitesList[0], ContextualOnboardingListItem.site(title: scheme + "tsn.ca"))
XCTAssertEqual(sitesList[1], ContextualOnboardingListItem.site(title: scheme + "cbc.ca"))
XCTAssertEqual(sitesList[1], ContextualOnboardingListItem.site(title: scheme + "ctvnews.ca"))
XCTAssertEqual(sitesList[2], ContextualOnboardingListItem.site(title: scheme + "canadiantire.ca"))
XCTAssertEqual(sitesList[3], ContextualOnboardingListItem.surprise(title: scheme + "britannica.com/animal/duck"))
}
Expand Down Expand Up @@ -108,7 +108,7 @@ class OnboardingSuggestedSitesProviderTests: XCTestCase {

// THEN
XCTAssertEqual(sitesList[0], ContextualOnboardingListItem.site(title: scheme + "afl.com.au"))
XCTAssertEqual(sitesList[1], ContextualOnboardingListItem.site(title: scheme + "abc.net.au"))
XCTAssertEqual(sitesList[1], ContextualOnboardingListItem.site(title: scheme + "news.com.au"))
XCTAssertEqual(sitesList[2], ContextualOnboardingListItem.site(title: scheme + "eBay.com"))
XCTAssertEqual(sitesList[3], ContextualOnboardingListItem.surprise(title: scheme + "britannica.com/animal/duck"))
}
Expand Down

0 comments on commit 4f086ab

Please sign in to comment.