fix(deps): update dependency org.robolectric:robolectric to v4.15 (#4901)

* fix(deps): update dependency org.robolectric:robolectric to v4.15

* It seems that there's been some improvement on Robolectric 4.15 so this can be tested properly now.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
renovate[bot]
2025-06-20 17:23:20 +02:00
committed by GitHub
parent 9d6e089499
commit 304b99d544
2 changed files with 2 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ test_konsist = "com.lemonappdev:konsist:0.17.3"
test_turbine = "app.cash.turbine:turbine:1.2.1"
test_truth = "com.google.truth:truth:1.4.4"
test_parameter_injector = "com.google.testparameterinjector:test-parameter-injector:1.18"
test_robolectric = "org.robolectric:robolectric:4.14.1"
test_robolectric = "org.robolectric:robolectric:4.15"
test_appyx_junit = { module = "com.bumble.appyx:testing-junit4", version.ref = "appyx" }
test_composable_preview_scanner = "io.github.sergio-sastre.ComposablePreviewScanner:android:0.6.1"
test_detekt_api = { module = "io.gitlab.arturbosch.detekt:detekt-api", version.ref = "detekt" }

View File

@@ -17,9 +17,7 @@ class FileExtensionExtractorWithValidationTest {
@Test
fun `test FileExtensionExtractor with validation OK`() {
val sut = FileExtensionExtractorWithValidation()
// The result should be txt, but with Robolectric,
// MimeTypeMap.getSingleton().hasExtension() always returns false
assertThat(sut.extractFromName("test.txt")).isEqualTo("bin")
assertThat(sut.extractFromName("test.txt")).isEqualTo("txt")
}
@Test