Skip to content

Commit

Permalink
Assert contentText instead contentTitle in WeeklyRoundupNotifierTest
Browse files Browse the repository at this point in the history
  • Loading branch information
irfano committed Apr 8, 2024
1 parent 5351dac commit 01b90bd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class WeeklyRoundupNotifierTest : BaseUnitTest() {

val list = weeklyRoundupNotifier.buildNotifications()

assertThat(list.first().contentTitle).isEqualTo(
assertThat(list.first().contentText).isEqualTo(
resourceProvider.getString(
R.string.weekly_roundup_notification_text_views_only,
statsUtils.toFormattedString(data!!.views)
Expand All @@ -199,7 +199,7 @@ class WeeklyRoundupNotifierTest : BaseUnitTest() {

val list = weeklyRoundupNotifier.buildNotifications()

assertThat(list.first().contentTitle).isEqualTo(
assertThat(list.first().contentText).isEqualTo(
resourceProvider.getString(
R.string.weekly_roundup_notification_text_views_and_comments,
statsUtils.toFormattedString(data!!.views),
Expand All @@ -218,7 +218,7 @@ class WeeklyRoundupNotifierTest : BaseUnitTest() {

val list = weeklyRoundupNotifier.buildNotifications()

assertThat(list.first().contentTitle).isEqualTo(
assertThat(list.first().contentText).isEqualTo(
resourceProvider.getString(
R.string.weekly_roundup_notification_text_views_and_likes,
statsUtils.toFormattedString(data!!.views),
Expand All @@ -237,7 +237,7 @@ class WeeklyRoundupNotifierTest : BaseUnitTest() {

val list = weeklyRoundupNotifier.buildNotifications()

assertThat(list.first().contentTitle).isEqualTo(
assertThat(list.first().contentText).isEqualTo(
resourceProvider.getString(
R.string.weekly_roundup_notification_text_all,
statsUtils.toFormattedString(data!!.views),
Expand Down

0 comments on commit 01b90bd

Please sign in to comment.