Skip to content

Commit afb600e

Browse files
committed
Clean up code
1 parent 70a8e89 commit afb600e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

WooCommerce/src/test/kotlin/com/woocommerce/android/ui/woopos/home/items/WooPosProductsRemoteDataSourceTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ class WooPosProductsRemoteDataSourceTest {
12401240
runTest {
12411241
// GIVEN
12421242
val productId = 1L
1243-
val variationId = 99L // Different from cached variations
1243+
val variationId = 99L
12441244
val wcVariation = WCProductVariationModel(LocalId(1)).copy(
12451245
remoteVariationId = RemoteId(variationId),
12461246
remoteProductId = RemoteId(productId)
@@ -1258,10 +1258,9 @@ class WooPosProductsRemoteDataSourceTest {
12581258
val remotePayload = WCProductStore.RemoteProductVariationsPayload(
12591259
site = siteModel,
12601260
remoteProductId = productId,
1261-
variations = listOf(wcVariation) // Returns the new variation
1261+
variations = listOf(wcVariation)
12621262
)
12631263

1264-
// Mock cache with existing variations (but not the one we're looking for)
12651264
whenever(variationsCache.get(productId)).thenReturn(variationsSampleProducts)
12661265
whenever(productRestClient.fetchProductVariations(siteModel, productId))
12671266
.thenReturn(remotePayload)

0 commit comments

Comments
 (0)