Add Konsist test to use isFalse() instead of isEqualTo(false), and fix existing issues.
This commit is contained in:
parent
fa590202c3
commit
b2d9b41946
9 changed files with 85 additions and 73 deletions
|
|
@ -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)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue