Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kickstarter/android-oss into feat…
Browse files Browse the repository at this point in the history
…ure/NTV-188-Project-Story

* 'master' of github.com:kickstarter/android-oss:
  No-jira: Removed flaky test (#1471)
  • Loading branch information
Arkariang committed Nov 29, 2021
2 parents 48c7c0b + 830f0b7 commit 8723bd9
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,6 @@ class ProjectExtTest : KSRobolectricTestCase() {
assertEquals("48 hours", project.deadlineCountdown(context))
}

@Test
fun testDeadlineCountdownDetail_shouldReturnFormatedString() {
`when`(context.getString(R.string.discovery_baseball_card_deadline_units_secs)).thenReturn("secs")
`when`(context.getString(R.string.discovery_baseball_card_deadline_units_mins)).thenReturn("mins")
`when`(context.getString(R.string.discovery_baseball_card_deadline_units_hours)).thenReturn("hours")
`when`(context.getString(R.string.discovery_baseball_card_deadline_units_days)).thenReturn("days")

val project: Project = ProjectFactory.project().toBuilder().deadline(DateTime.now().plusDays(5)).build()

assertEquals("5 days", project.deadlineCountdown(context))
}

@Test
fun testDeadlineCountdownUnit_testAllCases_shouldReturnCorrectUnitOfTime() {
`when`(context.getString(R.string.discovery_baseball_card_deadline_units_secs)).thenReturn("secs")
Expand Down

0 comments on commit 8723bd9

Please sign in to comment.