Fix unit tests.
This commit is contained in:
parent
ad30ca8671
commit
b73485e7b3
@ -3176,6 +3176,7 @@
|
||||
<item quantity="other">Final result based on %1$d votes</item>
|
||||
</plurals>
|
||||
<string name="poll_end_action">End poll</string>
|
||||
<!-- TODO TO BE REMOVED -->
|
||||
<string name="a11y_poll_winner_option">winner option</string>
|
||||
<string name="end_poll_confirmation_title">End this poll?</string>
|
||||
<string name="end_poll_confirmation_description">This will stop people from being able to vote and will display the final results of the poll.</string>
|
||||
|
@ -159,7 +159,7 @@ class ProcessBodyOfReplyToEventUseCaseTest {
|
||||
// Given
|
||||
givenTypeOfRepliedEvent(isPollMessage = true)
|
||||
givenNewContentForId(R.string.message_reply_to_sender_created_poll)
|
||||
every { fakeRepliedEvent.type } returns EventType.POLL_START.unstable
|
||||
every { fakeRepliedEvent.getClearType() } returns EventType.POLL_START.unstable
|
||||
every { fakeRepliedEvent.getPollQuestion() } returns null
|
||||
|
||||
executeAndAssertResult()
|
||||
@ -170,7 +170,7 @@ class ProcessBodyOfReplyToEventUseCaseTest {
|
||||
// Given
|
||||
givenTypeOfRepliedEvent(isPollMessage = true)
|
||||
givenNewContentForId(R.string.message_reply_to_sender_created_poll)
|
||||
every { fakeRepliedEvent.type } returns EventType.POLL_START.unstable
|
||||
every { fakeRepliedEvent.getClearType() } returns EventType.POLL_START.unstable
|
||||
every { fakeRepliedEvent.getPollQuestion() } returns A_NEW_CONTENT
|
||||
|
||||
executeAndAssertResult()
|
||||
|
Loading…
x
Reference in New Issue
Block a user