Correct test method names in OnTest
This commit is contained in:
parent
b5aab62af4
commit
b6bb3aafaa
@ -9,7 +9,7 @@ internal class OnTest {
|
|||||||
|
|
||||||
internal class `onSuccess` {
|
internal class `onSuccess` {
|
||||||
@Test
|
@Test
|
||||||
internal fun invokesCallbackIfOk() {
|
internal fun invokesActionIfOk() {
|
||||||
val counter = Counter(50)
|
val counter = Counter(50)
|
||||||
|
|
||||||
Ok(counter).onSuccess { it.count += 50 }
|
Ok(counter).onSuccess { it.count += 50 }
|
||||||
@ -35,7 +35,7 @@ internal class OnTest {
|
|||||||
|
|
||||||
internal class `onFailure` {
|
internal class `onFailure` {
|
||||||
@Test
|
@Test
|
||||||
internal fun invokesCallbackIfErr() {
|
internal fun invokesActionIfErr() {
|
||||||
val counter = Counter(555)
|
val counter = Counter(555)
|
||||||
|
|
||||||
Err(CounterError).onFailure { counter.count += 100 }
|
Err(CounterError).onFailure { counter.count += 100 }
|
||||||
|
Loading…
Reference in New Issue
Block a user