Fix konsist test.
This commit is contained in:
parent
5726b73282
commit
df76e283d0
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class KonsistPreviewTest {
|
||||||
" and should be internal."
|
" and should be internal."
|
||||||
) {
|
) {
|
||||||
val testedView = it.name.removeSuffix("A11yPreview")
|
val testedView = it.name.removeSuffix("A11yPreview")
|
||||||
it.text.contains("$testedView(") &&
|
(it.text.contains("$testedView(") || it.text.contains("ContentToPreview(")) &&
|
||||||
it.hasAllAnnotationsOf(PreviewsDayNight::class).not() &&
|
it.hasAllAnnotationsOf(PreviewsDayNight::class).not() &&
|
||||||
it.text.contains("ElementPreview") &&
|
it.text.contains("ElementPreview") &&
|
||||||
it.hasInternalModifier
|
it.hasInternalModifier
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue