Merge pull request #2756 from element-hq/renovate/com.google.testparameterinjector-test-parameter-injector-1.x
Update dependency com.google.testparameterinjector:test-parameter-injector to v1.16
This commit is contained in:
commit
734ffc2627
2 changed files with 4 additions and 4 deletions
|
|
@ -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" }
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue