You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stream-chat-android-client/src/test/java/io/getstream/chat/android/client/api2/mapping/DomainMappingTest.kt
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -576,6 +576,16 @@ internal class DomainMappingTest {
576
576
assertEquals(expected, attachment)
577
577
}
578
578
579
+
@Test
580
+
fun`AttachmentDto with null file_size falls back to 0`() {
581
+
val attachmentDto = randomAttachmentDto(fileSize =null)
582
+
val sut =Fixture().get()
583
+
val attachment =with(sut) {
584
+
attachmentDto.toDomain()
585
+
}
586
+
assertEquals(0, attachment.fileSize)
587
+
}
588
+
579
589
@Test
580
590
fun`BannedUserResponse is correctly mapped to BannedUser`() {
581
591
val bannedUserResponse = randomBannedUserResponse()
0 commit comments