Fix Konsist test. Was causing issue with AsyncProvider : PreviewParameterProvider<Async<Unit>>
This commit is contained in:
parent
b8b5874d1a
commit
92763be1aa
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue