Fix typo in annotation name.
This commit is contained in:
parent
cc8d61389f
commit
73b210440f
1 changed files with 2 additions and 2 deletions
|
|
@ -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(") &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue