Fix typo in annotation name.

This commit is contained in:
Benoit Marty 2025-08-25 11:58:32 +02:00
parent cc8d61389f
commit 73b210440f

View file

@ -40,10 +40,10 @@ class KonsistPreviewTest {
.functions() .functions()
.withNameEndingWith("A11yPreview") .withNameEndingWith("A11yPreview")
.assertTrue( .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 'ElementPreview' composable," +
" should contain the tested view" + " should contain the tested view" +
" 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(") &&