You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WooCommerce/src/test/kotlin/com/woocommerce/android/ui/woopos/home/items/WooPosProductsRemoteDataSourceTest.kt
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1240,7 +1240,7 @@ class WooPosProductsRemoteDataSourceTest {
1240
1240
runTest {
1241
1241
// GIVEN
1242
1242
val productId =1L
1243
-
val variationId =99L// Different from cached variations
1243
+
val variationId =99L
1244
1244
val wcVariation =WCProductVariationModel(LocalId(1)).copy(
1245
1245
remoteVariationId =RemoteId(variationId),
1246
1246
remoteProductId =RemoteId(productId)
@@ -1258,10 +1258,9 @@ class WooPosProductsRemoteDataSourceTest {
1258
1258
val remotePayload =WCProductStore.RemoteProductVariationsPayload(
1259
1259
site = siteModel,
1260
1260
remoteProductId = productId,
1261
-
variations =listOf(wcVariation)// Returns the new variation
1261
+
variations =listOf(wcVariation)
1262
1262
)
1263
1263
1264
-
// Mock cache with existing variations (but not the one we're looking for)
0 commit comments