File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
tests/konsist/src/test/kotlin/io/element/android/tests/konsist Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 77
88package io.element.android.tests.konsist
99
10+ import com.google.common.truth.Truth.assertThat
1011import com.lemonappdev.konsist.api.Konsist
1112import com.lemonappdev.konsist.api.verify.assertTrue
1213import org.junit.Test
@@ -43,10 +44,13 @@ class KonsistLicenseTest {
4344 .scopeFromProject()
4445 .files
4546 .filter {
46- it.path.contains( " / enterprise/features " ).not () &&
47+ it.moduleName.startsWith( " enterprise" ).not () &&
4748 it.nameWithExtension != " locales.kt" &&
4849 it.name.startsWith(" Template " ).not ()
4950 }
51+ .also {
52+ assertThat(it).isNotEmpty()
53+ }
5054 .assertTrue {
5155 publicLicense.containsMatchIn(it.text)
5256 }
@@ -58,7 +62,10 @@ class KonsistLicenseTest {
5862 .scopeFromProject()
5963 .files
6064 .filter {
61- it.path.contains(" /enterprise/features" )
65+ it.moduleName.startsWith(" enterprise" )
66+ }
67+ .also {
68+ assertThat(it).isNotEmpty()
6269 }
6370 .assertTrue {
6471 enterpriseLicense.containsMatchIn(it.text)
You can’t perform that action at this time.
0 commit comments