Show Rotten Tomatoes before IMDb like the PWA
All checks were successful
review/code-claude Claude code review: pass, no blocking findings
All checks were successful
review/code-claude Claude code review: pass, no blocking findings
This commit is contained in:
parent
38db9e5127
commit
c54acc9c1d
5 changed files with 18 additions and 6 deletions
|
|
@ -2,6 +2,7 @@ package com.github.damontecres.wholphin.data.model
|
|||
|
||||
import androidx.compose.ui.text.AnnotatedString
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Assert.assertSame
|
||||
import org.junit.Assert.assertTrue
|
||||
|
|
@ -131,6 +132,9 @@ class SourceRatingsTest {
|
|||
assertTrue(details.communityRating!!.text.endsWith("8.8"))
|
||||
assertTrue(details.criticRating!!.text.endsWith("96%"))
|
||||
assertEquals(jellyfinDetails.basic, details.basic)
|
||||
// PWA order: Rotten Tomatoes before IMDb
|
||||
assertTrue(details.criticRatingFirst)
|
||||
assertFalse(jellyfinDetails.criticRatingFirst)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue