mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Merge remote-tracking branch 'origin/develop' into HEAD
This commit is contained in:
+3
-3
@@ -49,12 +49,12 @@ class KonsistArchitectureTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Events MUST be sealed interface`() {
|
||||
fun `Event MUST be sealed interface`() {
|
||||
Konsist.scopeFromProject()
|
||||
.classes()
|
||||
.withSealedModifier()
|
||||
.withNameEndingWith("Events")
|
||||
.assertEmpty(additionalMessage = "Events class MUST be sealed interface")
|
||||
.withNameEndingWith("Event")
|
||||
.assertEmpty(additionalMessage = "Event class MUST be sealed interface")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -103,6 +103,7 @@ class KonsistClassNameTest {
|
||||
"FakeImageLoader",
|
||||
"FakeKeyStore",
|
||||
"FakeListenableFuture",
|
||||
"FakeMediaStoreContentProvider",
|
||||
"FakeParentNode",
|
||||
)
|
||||
.assertTrue {
|
||||
|
||||
+5
-2
@@ -67,11 +67,14 @@ class KonsistImmutableTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Immutable annotation is not used on sealed interface for Presenter Events`() {
|
||||
fun `Immutable annotation is not used on sealed interface for Presenter Event`() {
|
||||
Konsist
|
||||
.scopeFromProduction()
|
||||
.interfaces()
|
||||
.withNameEndingWith("Events")
|
||||
.withoutName(
|
||||
"LatestEvent",
|
||||
)
|
||||
.withNameEndingWith("Event")
|
||||
.withAnnotationOf(Immutable::class)
|
||||
.assertEmpty()
|
||||
}
|
||||
|
||||
@@ -134,6 +134,7 @@ class KonsistPreviewTest {
|
||||
"SecureBackupSetupViewChangePreview",
|
||||
"SelectedUserCannotRemovePreview",
|
||||
"SpaceMembersViewNoHeroesPreview",
|
||||
"SyncStateViewServerUnreachablePreview",
|
||||
"TextComposerAddCaptionPreview",
|
||||
"TextComposerCaptionPreview",
|
||||
"TextComposerEditCaptionPreview",
|
||||
|
||||
Reference in New Issue
Block a user