From cbb55fe1ae4f7a1a55ae98964b74972a01352fd4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 25 Aug 2025 11:58:32 +0200 Subject: [PATCH] Fix typo in annotation name. --- .../io/element/android/tests/konsist/KonsistPreviewTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/konsist/src/test/kotlin/io/element/android/tests/konsist/KonsistPreviewTest.kt b/tests/konsist/src/test/kotlin/io/element/android/tests/konsist/KonsistPreviewTest.kt index 4c5863d1b9..d0408fb61a 100644 --- a/tests/konsist/src/test/kotlin/io/element/android/tests/konsist/KonsistPreviewTest.kt +++ b/tests/konsist/src/test/kotlin/io/element/android/tests/konsist/KonsistPreviewTest.kt @@ -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(") &&