fix(model): drop unused User#karma field and update test cases

This commit is contained in:
Harsh Shandilya 2022-07-23 17:33:57 +05:30
parent ca88d627ff
commit f16ae4ff0b
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
5 changed files with 3 additions and 4 deletions

View file

@ -40,7 +40,7 @@ class ApiTest {
@Test
fun `post details with comments`() = runBlocking {
val postDetails = api.getPostDetails("d9ucpe")
val postDetails = api.getPostDetails("tdfoqh")
assertEquals(7, postDetails.comments.size)
}

View file

@ -12,7 +12,7 @@ class FakeApi(private val delegate: BehaviorDelegate<LobstersApi>) : LobstersApi
private val json = Json { ignoreUnknownKeys = true }
private val hottest: List<LobstersPost> = json.decodeFromString(getJson("hottest.json"))
private val postDetails: LobstersPostDetails =
json.decodeFromString(getJson("post_details_d9ucpe.json"))
json.decodeFromString(getJson("post_details_tdfoqh.json"))
private val user: User = json.decodeFromString(getJson("msfjarvis.json"))
override suspend fun getHottestPosts(page: Int): List<LobstersPost> {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long