Commit e7de056 1 parent e99d166 commit e7de056 Copy full SHA for e7de056
File tree 1 file changed +9
-2
lines changed
tests/konsist/src/test/kotlin/io/element/android/tests/konsist
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
package io.element.android.tests.konsist
9
9
10
+ import com.google.common.truth.Truth.assertThat
10
11
import com.lemonappdev.konsist.api.Konsist
11
12
import com.lemonappdev.konsist.api.verify.assertTrue
12
13
import org.junit.Test
@@ -43,10 +44,13 @@ class KonsistLicenseTest {
43
44
.scopeFromProject()
44
45
.files
45
46
.filter {
46
- it.path.contains( " / enterprise/features " ).not () &&
47
+ it.moduleName.startsWith( " enterprise" ).not () &&
47
48
it.nameWithExtension != " locales.kt" &&
48
49
it.name.startsWith(" Template " ).not ()
49
50
}
51
+ .also {
52
+ assertThat(it).isNotEmpty()
53
+ }
50
54
.assertTrue {
51
55
publicLicense.containsMatchIn(it.text)
52
56
}
@@ -58,7 +62,10 @@ class KonsistLicenseTest {
58
62
.scopeFromProject()
59
63
.files
60
64
.filter {
61
- it.path.contains(" /enterprise/features" )
65
+ it.moduleName.startsWith(" enterprise" )
66
+ }
67
+ .also {
68
+ assertThat(it).isNotEmpty()
62
69
}
63
70
.assertTrue {
64
71
enterpriseLicense.containsMatchIn(it.text)
You can’t perform that action at this time.
0 commit comments