Browse Source

Fix Konsist test. Was causing issue with `AsyncProvider : PreviewParameterProvider<Async<Unit>>`

pull/1738/head
Benoit Marty 11 months ago committed by Benoit Marty
parent
commit
92763be1aa
  1. 2
      tests/konsist/src/test/kotlin/io/element/android/tests/konsist/KonsistClassNameTest.kt

2
tests/konsist/src/test/kotlin/io/element/android/tests/konsist/KonsistClassNameTest.kt

@ -55,6 +55,8 @@ class KonsistClassNameTest { @@ -55,6 +55,8 @@ class KonsistClassNameTest {
val providedType = it.text
.substringBefore(">")
.substringAfter("<")
// Get the substring before the first '<' to remove the generic type
.substringBefore("<")
.removeSuffix("?")
.replace(".", "")
it.name.endsWith("Provider") && it.name.contains(providedType)

Loading…
Cancel
Save