Dodaj pewny outbox uploadu zdjęć
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user