Fix Konsist test. Was causing issue with AsyncProvider : PreviewParameterProvider<Async<Unit>>
This commit is contained in:
committed by
Benoit Marty
parent
dfcffce243
commit
760f4a284f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user