Fix typo in annotation name.

This commit is contained in:
Benoit Marty 2025-08-25 11:58:32 +02:00
parent 27c242296e
commit cbb55fe1ae

View file

@ -40,10 +40,10 @@ class KonsistPreviewTest {
.functions()
.withNameEndingWith("A11yPreview")
.assertTrue(
additionalMessage = "Functions with 'A11yPreview' suffix should have '@Previews' annotation and not '@PreviewsDayNight'," +
additionalMessage = "Functions with 'A11yPreview' suffix should have '@Preview' annotation and not '@PreviewsDayNight'," +
" should contain 'ElementPreview' composable," +
" should contain the tested view" +
" and should be internal"
" and should be internal."
) {
val testedView = it.name.removeSuffix("A11yPreview")
it.text.contains("$testedView(") &&