Skip to content

Commit

Permalink
Merge pull request #2756 from element-hq/renovate/com.google.testpara…
Browse files Browse the repository at this point in the history
…meterinjector-test-parameter-injector-1.x

Update dependency com.google.testparameterinjector:test-parameter-injector to v1.16
  • Loading branch information
bmarty authored Apr 26, 2024
2 parents ba1f21c + 56257bd commit 734ffc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ test_mockk = "io.mockk:mockk:1.13.10"
test_konsist = "com.lemonappdev:konsist:0.13.0"
test_turbine = "app.cash.turbine:turbine:1.1.0"
test_truth = "com.google.truth:truth:1.4.2"
test_parameter_injector = "com.google.testparameterinjector:test-parameter-injector:1.15"
test_parameter_injector = "com.google.testparameterinjector:test-parameter-injector:1.16"
test_robolectric = "org.robolectric:robolectric:4.12.1"
test_appyx_junit = { module = "com.bumble.appyx:testing-junit4", version.ref = "appyx" }

Expand Down
6 changes: 3 additions & 3 deletions tests/uitests/src/test/kotlin/ui/PreviewProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
package ui

import com.airbnb.android.showkase.models.Showkase
import com.google.testing.junit.testparameterinjector.TestParameter
import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider

object PreviewProvider : TestParameter.TestParameterValuesProvider {
override fun provideValues(): List<TestPreview> {
object PreviewProvider : TestParameterValuesProvider() {
override fun provideValues(context: Context): List<TestPreview> {
val metadata = Showkase.getMetadata()
val components = metadata.componentList.map(::ComponentTestPreview)
val colors = metadata.colorList.map(::ColorTestPreview)
Expand Down

0 comments on commit 734ffc2

Please sign in to comment.