mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Add Konsist test to use isTrue() instead of isEqualTo(true), and fix existing issues.
This commit is contained in:
@@ -74,4 +74,16 @@ class KonsistTestTest {
|
||||
functionDeclaration.text.contains("isEqualTo(false)")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `use isTrue() instead of isEqualTo(true)`() {
|
||||
Konsist
|
||||
.scopeFromTest()
|
||||
.functions()
|
||||
// Exclude self
|
||||
.withoutName("use isTrue() instead of isEqualTo(true)")
|
||||
.assertFalse { functionDeclaration ->
|
||||
functionDeclaration.text.contains("isEqualTo(true)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user