mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Konsist: add test to ensure that functions with @PreviewsDayNight are internal, and fix existing issues.
This commit is contained in:
committed by
Benoit Marty
parent
8ca42d4cfc
commit
6a3c42f189
@@ -46,4 +46,15 @@ class KonsistPreviewTest {
|
||||
it.text.contains("ElementPreview")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Functions with '@PreviewsDayNight' are internal`() {
|
||||
Konsist
|
||||
.scopeFromProject()
|
||||
.functions()
|
||||
.withAllAnnotationsOf(PreviewsDayNight::class)
|
||||
.assertTrue {
|
||||
it.hasInternalModifier
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user