mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-292 Tech | Fix | Fix unit tests (#2551)
This commit is contained in:
parent
b7ec8d0f2e
commit
82e81546cd
1 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withText
|
|||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import androidx.test.filters.LargeTest
|
||||
import com.anytypeio.anytype.R
|
||||
import com.anytypeio.anytype.analytics.base.Analytics
|
||||
import com.anytypeio.anytype.core_models.Block
|
||||
import com.anytypeio.anytype.core_models.Relation
|
||||
import com.anytypeio.anytype.domain.`object`.ReloadObject
|
||||
|
@ -50,6 +51,9 @@ class DisplayObjectRelationTextValueTest {
|
|||
@Mock
|
||||
lateinit var reloadObject: ReloadObject
|
||||
|
||||
@Mock
|
||||
lateinit var analytics: Analytics
|
||||
|
||||
val root = MockDataFactory.randomUuid()
|
||||
|
||||
private val state = MutableStateFlow(ObjectSet.init())
|
||||
|
@ -61,7 +65,8 @@ class DisplayObjectRelationTextValueTest {
|
|||
TestRelationTextValueFragment.testVmFactory = RelationTextValueViewModel.Factory(
|
||||
relations = DataViewObjectRelationProvider(state),
|
||||
values = DataViewObjectValueProvider(state, session),
|
||||
reloadObject = reloadObject
|
||||
reloadObject = reloadObject,
|
||||
analytics = analytics
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue