Skip to content

Commit

Permalink
Update tests to not consider if the flow is complete.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynewstrom-stripe committed May 2, 2024
1 parent 7131b98 commit 8be1fc0
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class PrimaryButtonUiStateMapperTest {

result.test {
assertThat(awaitItem()).isEqualTo(usBankButton)
awaitComplete()
}
}

Expand All @@ -62,7 +61,6 @@ class PrimaryButtonUiStateMapperTest {

result.test {
assertThat(awaitItem()?.enabled).isTrue()
awaitComplete()
}
}

Expand All @@ -81,7 +79,6 @@ class PrimaryButtonUiStateMapperTest {

result.test {
assertThat(awaitItem()?.enabled).isFalse()
awaitComplete()
}
}

Expand All @@ -100,7 +97,6 @@ class PrimaryButtonUiStateMapperTest {

result.test {
assertThat(awaitItem()?.enabled).isFalse()
awaitComplete()
}
}

Expand All @@ -119,7 +115,6 @@ class PrimaryButtonUiStateMapperTest {

result.test {
assertThat(awaitItem()).isNull()
awaitComplete()
}
}

Expand All @@ -137,7 +132,6 @@ class PrimaryButtonUiStateMapperTest {

result.test {
assertThat(awaitItem()).isNull()
awaitComplete()
}
}

Expand All @@ -155,7 +149,6 @@ class PrimaryButtonUiStateMapperTest {

result.test {
assertThat(awaitItem()).isNotNull()
awaitComplete()
}
}

Expand All @@ -175,12 +168,10 @@ class PrimaryButtonUiStateMapperTest {

resultWithLock.test {
assertThat(awaitItem()?.lockVisible).isTrue()
awaitComplete()
}

resultWithoutLock.test {
assertThat(awaitItem()?.lockVisible).isFalse()
awaitComplete()
}
}

Expand Down

0 comments on commit 8be1fc0

Please sign in to comment.