Skip to content

Commit 2f74184

Browse files
committed
make Actions and reducer not internal for testing
1 parent 02d2648 commit 2f74184

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/src/commonMain/kotlin/com/willowtreeapps/common/Actions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.beyondeye.reduks.Action
44
import com.willowtreeapps.common.repo.ItemsHolder
55
import com.willowtreeapps.common.repo.Profile
66

7-
internal sealed class Actions : Action {
7+
sealed class Actions : Action {
88

99
class FetchingItemsStartedAction
1010
class FetchingItemsSuccessAction(val itemsHolder: ItemsHolder)

common/src/commonMain/kotlin/com/willowtreeapps/common/Reducers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import kotlin.random.Random
99
* Reducers and functions used by reducers are in this file. Functions must be pure functions without
1010
* side effects.
1111
*/
12-
internal fun reducer(state: AppState, action: Any): AppState =
12+
fun reducer(state: AppState, action: Any): AppState =
1313
when (action) {
1414
is FetchingItemsStartedAction -> state.copy(isLoadingItems = true)
1515
is FetchingItemsSuccessAction -> {

0 commit comments

Comments
 (0)