port ReducerTest to exported module fixtures
This commit is contained in:
parent
86f640d301
commit
327ba92767
|
@ -5,4 +5,10 @@ plugins {
|
|||
|
||||
dependencies {
|
||||
implementation Dependencies.mavenCentral.kotlinCoroutinesCore
|
||||
|
||||
testFixturesImplementation testFixtures(project(":core"))
|
||||
testFixturesImplementation Dependencies.mavenCentral.kotlinCoroutinesCore
|
||||
testFixturesImplementation Dependencies.mavenCentral.kluent
|
||||
testFixturesImplementation Dependencies.mavenCentral.mockk
|
||||
testFixturesImplementation Dependencies.mavenCentral.kotlinCoroutinesTest
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package app.dapk.st.directory
|
||||
package fake
|
||||
|
||||
import org.amshove.kluent.internal.assertEquals
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
package app.dapk.st.directory
|
||||
package test
|
||||
|
||||
import app.dapk.state.Action
|
||||
import app.dapk.state.Reducer
|
||||
import app.dapk.state.ReducerFactory
|
||||
import app.dapk.state.ReducerScope
|
||||
import fake.FakeEventSource
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.test.UnconfinedTestDispatcher
|
||||
import kotlinx.coroutines.test.runTest
|
|
@ -14,6 +14,7 @@ dependencies {
|
|||
|
||||
androidImportFixturesWorkaround(project, project(":matrix:common"))
|
||||
androidImportFixturesWorkaround(project, project(":core"))
|
||||
androidImportFixturesWorkaround(project, project(":domains:state"))
|
||||
androidImportFixturesWorkaround(project, project(":domains:store"))
|
||||
androidImportFixturesWorkaround(project, project(":domains:android:viewmodel"))
|
||||
androidImportFixturesWorkaround(project, project(":domains:android:stub"))
|
||||
|
|
|
@ -10,6 +10,7 @@ import io.mockk.mockk
|
|||
import kotlinx.coroutines.flow.flowOf
|
||||
import org.junit.Test
|
||||
import test.expect
|
||||
import test.testReducer
|
||||
|
||||
private val AN_OVERVIEW = aRoomOverview()
|
||||
private val AN_OVERVIEW_STATE = DirectoryItem(AN_OVERVIEW, UnreadCount(1), null)
|
||||
|
|
Loading…
Reference in New Issue