Skip to content

Commit

Permalink
Merge pull request #25 from arkivanov/register-TimeTravelStore-on-mai…
Browse files Browse the repository at this point in the history
…n-thread

Register TimeTravelStore on the main thread
  • Loading branch information
arkivanov authored Feb 10, 2022
2 parents 69fc94a + d100d7c commit 55e7f2b
Show file tree
Hide file tree
Showing 12 changed files with 419 additions and 381 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.arkivanov.mvikotlin.core.utils.isAssertOnMainThreadEnabled
import kotlin.test.AfterTest
import kotlin.test.BeforeTest

class DefaultStoreTest : StoreGenericTests by StoreGenericTests(
class DefaultStoreGenericTests : StoreGenericTests(
storeFactory = { initialState, bootstrapper, executorFactory, reducer ->
DefaultStore(
initialState = initialState,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.arkivanov.mvikotlin.main.store

import com.arkivanov.mvikotlin.core.test.internal.StoreThreadingTests
import com.arkivanov.mvikotlin.core.utils.isAssertOnMainThreadEnabled
import kotlin.test.AfterTest
import kotlin.test.BeforeTest

class DefaultStoreThreadingTests : StoreThreadingTests(
storeFactory = { initialState, bootstrapper, executorFactory, reducer ->
DefaultStore(
initialState = initialState,
bootstrapper = bootstrapper,
executor = executorFactory(),
reducer = reducer
)
}
)
1 change: 1 addition & 0 deletions mvikotlin-test-internal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ kotlin {
dependencies {
implementation(project(":mvikotlin"))
implementation(project(":rx"))
implementation(project(":rx-internal"))
implementation(project(":utils-internal"))
implementation(deps.kotlin.kotlinTestCommon)
implementation(deps.kotlin.kotlinTestAnnotationsCommon)
Expand Down
Loading

0 comments on commit 55e7f2b

Please sign in to comment.