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