@@ -95,7 +95,7 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
9595
9696 viewModel.onUserRewardSelection(testRewards[2 ])
9797
98- assert (uiState.size == 2 )
98+ assert (uiState.size == 3 )
9999 assert (flowState.size == 1 )
100100 assertEquals(
101101 flowState.last(),
@@ -141,7 +141,7 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
141141
142142 viewModel.onUserRewardSelection(testRewards[2 ])
143143
144- assert (uiState.size == 2 )
144+ assert (uiState.size == 3 )
145145 assert (flowState.size == 1 )
146146 assertEquals(
147147 flowState.last(),
@@ -191,7 +191,7 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
191191
192192 viewModel.onUserRewardSelection(testRewards[2 ])
193193
194- assert (uiState.size == 2 )
194+ assert (uiState.size == 3 )
195195 assert (flowState.size == 1 )
196196 assertEquals(
197197 flowState.last(),
@@ -241,7 +241,7 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
241241
242242 viewModel.onUserRewardSelection(testRewards[2 ])
243243
244- assert (uiState.size == 2 )
244+ assert (uiState.size == 3 )
245245 assert (flowState.size == 1 )
246246 assertEquals(
247247 flowState.last(),
@@ -299,7 +299,8 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
299299 rewardList = testRewards,
300300 initialRewardIndex = 3 ,
301301 project = testProjectData,
302- showAlertDialog = true
302+ showAlertDialog = true ,
303+ selectedReward = testRewards[2 ]
303304 )
304305 )
305306
@@ -346,7 +347,7 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
346347
347348 viewModel.onUserRewardSelection(testRewards[2 ])
348349
349- assert (uiState.size == 2 )
350+ assert (uiState.size == 3 )
350351 assert (flowState.size == 1 )
351352 assertEquals(
352353 flowState.last(),
@@ -407,7 +408,8 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
407408 rewardList = testRewards,
408409 initialRewardIndex = 3 ,
409410 project = testProjectData,
410- showAlertDialog = true
411+ showAlertDialog = true ,
412+ selectedReward = testRewards[2 ]
411413 )
412414 )
413415
@@ -464,7 +466,8 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
464466 rewardList = testRewards,
465467 initialRewardIndex = 3 ,
466468 project = testProjectData,
467- showAlertDialog = true
469+ showAlertDialog = true ,
470+ selectedReward = testRewards[2 ]
468471 )
469472 )
470473
@@ -530,7 +533,8 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
530533 rewardList = testRewards,
531534 initialRewardIndex = 3 ,
532535 project = testProjectData,
533- showAlertDialog = true
536+ showAlertDialog = true ,
537+ selectedReward = testRewards[2 ]
534538 )
535539 )
536540
@@ -596,7 +600,8 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
596600 rewardList = testRewards,
597601 initialRewardIndex = 3 ,
598602 project = testProjectData,
599- showAlertDialog = true
603+ showAlertDialog = true ,
604+ selectedReward = testRewards[2 ]
600605 )
601606 )
602607
@@ -610,7 +615,8 @@ class RewardsSelectionViewModelTest : KSRobolectricTestCase() {
610615 rewardList = testRewards,
611616 initialRewardIndex = 3 ,
612617 project = testProjectData,
613- showAlertDialog = false
618+ showAlertDialog = false ,
619+ selectedReward = testRewards[2 ]
614620 )
615621 )
616622
0 commit comments