Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsymons committed Mar 14, 2024
1 parent e9d0b5e commit 40fda60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion DuckDuckGo/UserText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,6 @@ In addition to the details entered into this form, your app issue report will co
static let netPVPNLocationRecommendedSectionTitle = NSLocalizedString("network.protection.vpn.location.recommended.section.title", value: "Recommended", comment: "Title for the VPN Location screen's Recommended section.")
static let netPVPNLocationRecommendedSectionFooter = NSLocalizedString("network.protection.vpn.location.recommended.section.footer", value: "Automatically connect to the nearest server we can find.", comment: "Footer describing the VPN Location screen's Recommended section which just has Nearest Available.")
static let netPVPNLocationAllCountriesSectionTitle = NSLocalizedString("network.protection.vpn.location.all.countries.section.title", value: "All Countries", comment: "Title for the VPN Location screen's All Countries section.")
static let netPVPNLocationNearestAvailableItemTitle = NSLocalizedString("network.protection.vpn.location.nearest.available.item.title", value: "Nearest Available", comment: "Title for the VPN Location screen's Nearest Available selection item.")
static func netPVPNLocationCountryItemFormattedCitiesCount(_ count: Int) -> String {
let message = NSLocalizedString("network.protection.vpn.location.country.item.formatted.cities.count", value: "%d cities", comment: "Subtitle of countries item when there are multiple cities, example : ")
return message.format(arguments: count)
Expand Down
3 changes: 0 additions & 3 deletions DuckDuckGo/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -1639,9 +1639,6 @@ https://duckduckgo.com/mac";
/* Subtitle of countries item when there are multiple cities, example : */
"network.protection.vpn.location.country.item.formatted.cities.count" = "%d cities";

/* Title for the VPN Location screen's Nearest Available selection item. */
"network.protection.vpn.location.nearest.available.item.title" = "Nearest Available";

/* Footer describing the VPN Location screen's Recommended section which just has Nearest Available. */
"network.protection.vpn.location.recommended.section.footer" = "Automatically connect to the nearest server we can find.";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ final class NetworkProtectionVPNLocationViewModelTests: XCTestCase {
XCTAssertNil(selectedItems.first?.id, file: file, line: line)
XCTAssertEqual(
selectedItems.first?.name,
UserText.netPVPNLocationNearestAvailableItemTitle,
UserText.netPPreferredLocationNearest,
file: file,
line: line
)
Expand Down

0 comments on commit 40fda60

Please sign in to comment.