Fix wrong TopAppBar usage
This commit is contained in:
parent
5d81a0264b
commit
f3eb0e69cc
2 changed files with 14 additions and 1 deletions
|
|
@ -37,4 +37,17 @@ class KonsistImportTest {
|
|||
it.name == "androidx.compose.material3.OutlinedTextField"
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `material3 TopAppBar should not be used`() {
|
||||
Konsist
|
||||
.scopeFromProject()
|
||||
.imports
|
||||
.assertFalse(
|
||||
additionalMessage = "Please use 'io.element.android.libraries.designsystem.theme.components.TopAppBar' instead of " +
|
||||
"'androidx.compose.material3.TopAppBar.",
|
||||
) {
|
||||
it.name == "androidx.compose.material3.TopAppBar"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue