Skip to content

Commit 18f3811

Browse files
committed
Update test case names for better readability.
1 parent f59700d commit 18f3811

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WooCommerce/WooCommerceTests/ViewRelated/Orders/Order Details/Addresses/AddressMapPickerViewModelTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct AddressMapPickerViewModelTests {
7373
}
7474

7575
@available(iOS 17, *)
76-
@Test func updateFields_with_unknown_country_sets_country_and_state_strings() async {
76+
@Test func updateFields_when_country_not_found_in_countryByCode_sets_country_and_state_as_strings() async {
7777
// Given
7878
let mockSearchProvider = MockAddressMapLocalSearchProvider.withFrenchAddress()
7979
let sut = AddressMapPickerViewModel(fields: .init(), countryByCode: mockCountryByCode, searchProvider: mockSearchProvider)
@@ -91,12 +91,12 @@ struct AddressMapPickerViewModelTests {
9191
#expect(updatedFields.postcode == "75007")
9292
#expect(updatedFields.country == "FR")
9393
#expect(updatedFields.state == "Île-de-France")
94-
#expect(updatedFields.selectedCountry == nil) // Unknown country
94+
#expect(updatedFields.selectedCountry == nil) // Country is not found in countryByCode dictionary
9595
#expect(updatedFields.selectedState == nil)
9696
}
9797

9898
@available(iOS 17, *)
99-
@Test func updateFields_with_known_country_sets_selected_country_and_state() async {
99+
@Test func updateFields_when_country_is_found_in_countryByCode_sets_selected_country_and_state() async {
100100
// Given
101101
let mockSearchProvider = MockAddressMapLocalSearchProvider.withUSAddress()
102102
let sut = AddressMapPickerViewModel(fields: .init(), countryByCode: mockCountryByCode, searchProvider: mockSearchProvider)

0 commit comments

Comments
 (0)