kotlin.test: 'fail' returns Nothing, 'assertFails' returns Throwable (not nullable).
Js tests now fail at the first failed assertion. #KT-10289 Fixed #KT-10369 Fixed
This commit is contained in:
@@ -35,7 +35,9 @@ object JUnitAsserter : Asserter {
|
||||
Assert.assertNull(message ?: "actual value is not null", actual)
|
||||
}
|
||||
|
||||
override fun fail(message : String?) {
|
||||
override fun fail(message : String?): Nothing {
|
||||
Assert.fail(message)
|
||||
// should not get here
|
||||
throw AssertionError(message)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user