Skip to content

Commit e924ac7

Browse files
committed
Delete android dependencies from test methods
1 parent 02e20d1 commit e924ac7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mini-common/src/main/java/mini/Store.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,10 @@ abstract class Store<S : Any> {
9292
@TestOnly
9393
fun setTestState(other: S) {
9494
onUiSync {
95-
setStateInternal(other)
95+
if (newState != _state) {
96+
_state = newState
97+
processor.onNext(other)
98+
}
9699
}
97100
}
98-
99-
@TestOnly
100-
fun resetState() {
101-
setStateInternal(initialState())
102-
}
103101
}

0 commit comments

Comments
 (0)