-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creator tools strings #215
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See feedback plz
@@ -31,4 +31,13 @@ public void testIsPresent() { | |||
assertTrue(StringUtils.isPresent("a")); | |||
assertTrue(StringUtils.isPresent(" a ")); | |||
} | |||
|
|||
@Test | |||
public void testSentenceCase() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a test for the single and empty cases.
@@ -50,10 +54,14 @@ public CreatorDashboardReferrerStatsViewHolder(final @NonNull View view) { | |||
.compose(observeForUI()) | |||
.subscribe(this::toggleRecyclerViewAndEmptyStateVisibility); | |||
|
|||
this.viewModel.outputs.referrerStatsTruncatedTextIsGone() | |||
this.viewModel.outputs.referrersTitleIsLimitedCopy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename to referrersTitleHasTopTen
@@ -56,6 +62,16 @@ public CreatorDashboardRewardStatsViewHolder(final @NonNull View view) { | |||
.compose(bindToLifecycle()) | |||
.compose(observeForUI()) | |||
.subscribe(gone -> ViewUtils.setGone(this.truncatedTextView, gone)); | |||
|
|||
this.viewModel.outputs.rewardsTitleIsLimitedCopy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this one also.
-renaming -adding more test cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🌟
* creator tools strings updates with tests for title changes * sentence casing top rewards string with tests * PR feedback: -renaming -adding more test cases
what
Updating creator tools strings and tests.
see