Fix konsist test.

This commit is contained in:
Benoit Marty 2026-01-09 15:36:10 +01:00
parent 5b95e8c480
commit bd5857ae23

View file

@ -47,7 +47,7 @@ class KonsistPreviewTest {
" and should be internal."
) {
val testedView = it.name.removeSuffix("A11yPreview")
it.text.contains("$testedView(") &&
(it.text.contains("$testedView(") || it.text.contains("ContentToPreview(")) &&
it.hasAllAnnotationsOf(PreviewsDayNight::class).not() &&
it.text.contains("ElementPreview") &&
it.hasInternalModifier