Dodaj pewny outbox uploadu zdjęć

This commit is contained in:
admin
2026-07-01 02:28:44 +02:00
parent 1a26817d2c
commit 060896d12b
20 changed files with 875 additions and 49 deletions
@@ -1,6 +1,7 @@
package pl.firmatpp.kierowca.ui
import java.time.LocalDate
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
@@ -20,4 +21,13 @@ class DriverUiRulesTest {
assertFalse(canManageRoutePhotos("", today))
assertFalse(canManageRoutePhotos("not-a-date", today))
}
@Test
fun calculatesPhotoGridRowsForTwoColumnInlineGallery() {
assertEquals(0, inlinePhotoGridRows(0))
assertEquals(1, inlinePhotoGridRows(1))
assertEquals(1, inlinePhotoGridRows(2))
assertEquals(2, inlinePhotoGridRows(3))
assertEquals(3, inlinePhotoGridRows(5))
}
}