fix(model): adjust for new comments structure

This commit is contained in:
Harsh Shandilya 2023-08-30 11:32:10 +05:30
parent 43402f45d8
commit 9dcf26b5a4
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ class ApiTest {
fun `post details with comments`() = runTest {
val postDetails = api.getPostDetails("tdfoqh")
assertIs<Success<LobstersPostDetails>>(postDetails)
assertThat(postDetails.value.comments).hasSize(7)
assertThat(postDetails.value.comments).hasSize(10)
}
@Test

File diff suppressed because one or more lines are too long

View file

@ -23,6 +23,6 @@ class Comment(
val score: Int,
@Serializable(with = JavaInstantSerializer::class) val createdAt: TemporalAccessor,
@Serializable(with = JavaInstantSerializer::class) val updatedAt: TemporalAccessor,
val indentLevel: Int,
val parentComment: String?,
@SerialName("commenting_user") val user: User,
)