mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-592 Tech | Fix | Fixed broken tests (#2691)
This commit is contained in:
parent
777e3f867f
commit
8f2b27babc
2 changed files with 4 additions and 12 deletions
|
@ -2,32 +2,23 @@ package com.anytypeio.anytype.presentation.sets
|
|||
|
||||
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
|
||||
import com.anytypeio.anytype.core_models.DV
|
||||
import com.anytypeio.anytype.core_models.DVFilter
|
||||
import com.anytypeio.anytype.core_models.DVSort
|
||||
import com.anytypeio.anytype.core_models.Event
|
||||
import com.anytypeio.anytype.core_models.Id
|
||||
import com.anytypeio.anytype.core_models.Key
|
||||
import com.anytypeio.anytype.core_models.ObjectWrapper
|
||||
import com.anytypeio.anytype.core_models.SearchResult
|
||||
import com.anytypeio.anytype.core_models.SubscriptionEvent
|
||||
import com.anytypeio.anytype.core_models.ext.content
|
||||
import com.anytypeio.anytype.presentation.TypicalTwoRecordObjectSet
|
||||
import com.anytypeio.anytype.presentation.relations.ObjectSetConfig
|
||||
import com.anytypeio.anytype.presentation.search.ObjectSearchConstants
|
||||
import com.anytypeio.anytype.presentation.sets.main.ObjectSetViewModelTestSetup
|
||||
import com.anytypeio.anytype.presentation.sets.model.CellView
|
||||
import com.anytypeio.anytype.presentation.sets.model.Viewer
|
||||
import com.anytypeio.anytype.presentation.util.CoroutinesTestRule
|
||||
import com.anytypeio.anytype.test_utils.MockDataFactory
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.emptyFlow
|
||||
import kotlinx.coroutines.flow.flow
|
||||
import org.junit.Before
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mockito.MockitoAnnotations
|
||||
import org.mockito.kotlin.doReturn
|
||||
import org.mockito.kotlin.stub
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertIs
|
||||
|
||||
|
@ -59,7 +50,7 @@ class ObjectSetExtensionTest : ObjectSetViewModelTestSetup() {
|
|||
afterId = null,
|
||||
beforeId = null,
|
||||
sources = doc.dv.content<DV>().sources,
|
||||
keys = doc.dv.content<DV>().relations.map { it.key },
|
||||
keys = ObjectSearchConstants.defaultKeys + doc.dv.content<DV>().relations.map { it.key },
|
||||
limit = ObjectSetConfig.DEFAULT_LIMIT,
|
||||
offset = 0,
|
||||
result = SearchResult(
|
||||
|
|
|
@ -8,6 +8,7 @@ import com.anytypeio.anytype.core_models.SubscriptionEvent
|
|||
import com.anytypeio.anytype.core_models.ext.content
|
||||
import com.anytypeio.anytype.presentation.TypicalTwoRecordObjectSet
|
||||
import com.anytypeio.anytype.presentation.relations.ObjectSetConfig
|
||||
import com.anytypeio.anytype.presentation.search.ObjectSearchConstants
|
||||
import com.anytypeio.anytype.presentation.sets.model.CellView
|
||||
import com.anytypeio.anytype.presentation.sets.model.ColumnView
|
||||
import com.anytypeio.anytype.presentation.sets.model.Viewer
|
||||
|
@ -68,7 +69,7 @@ class ObjectSetSettingActiveViewerTest : ObjectSetViewModelTestSetup() {
|
|||
afterId = null,
|
||||
beforeId = null,
|
||||
sources = doc.dv.content<DV>().sources,
|
||||
keys = doc.dv.content<DV>().relations.map { it.key },
|
||||
keys = ObjectSearchConstants.defaultKeys + doc.dv.content<DV>().relations.map { it.key },
|
||||
limit = ObjectSetConfig.DEFAULT_LIMIT,
|
||||
offset = 0,
|
||||
result = SearchResult(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue