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
@@ -568,6 +568,16 @@ internal class DomainMappingTest {
568
568
assertEquals(expected, attachment)
569
569
}
570
570
571
+
@Test
572
+
fun`AttachmentDto with null file_size falls back to 0`() {
573
+
val attachmentDto = randomAttachmentDto(fileSize =null)
574
+
val sut =Fixture().get()
575
+
val attachment =with(sut) {
576
+
attachmentDto.toDomain()
577
+
}
578
+
assertEquals(0, attachment.fileSize)
579
+
}
580
+
571
581
@Test
572
582
fun`BannedUserResponse is correctly mapped to BannedUser`() {
573
583
val bannedUserResponse = randomBannedUserResponse()
0 commit comments