Skip to content

Commit 830f817

Browse files
author
Sharma Elanthiriayan
committed
Updates tests to check for "variation" instead of "variant"
1 parent 8356522 commit 830f817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/WooCommerceTests/ViewRelated/Products/ProductsTabProductViewModelTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ final class ProductsTabProductViewModelTests: XCTestCase {
7373
let detailsText = viewModel.detailsAttributedString.string
7474

7575
// Assert
76-
let singularFormat = NSLocalizedString("%ld variant", comment: "Label about one product variation shown on Products tab")
76+
let singularFormat = NSLocalizedString("%ld variation", comment: "Label about one product variation shown on Products tab")
7777
let expectedStockDetail = String.localizedStringWithFormat(singularFormat, variations.count)
7878
XCTAssertTrue(detailsText.contains(expectedStockDetail))
7979
}
@@ -88,7 +88,7 @@ final class ProductsTabProductViewModelTests: XCTestCase {
8888
let detailsText = viewModel.detailsAttributedString.string
8989

9090
// Assert
91-
let pluralFormat = NSLocalizedString("%ld variants", comment: "Label about number of variations shown on Products tab")
91+
let pluralFormat = NSLocalizedString("%ld variations", comment: "Label about number of variations shown on Products tab")
9292
let expectedStockDetail = String.localizedStringWithFormat(pluralFormat, variations.count)
9393
XCTAssertTrue(detailsText.contains(expectedStockDetail))
9494
}

0 commit comments

Comments
 (0)