Closed provegard closed 4 years ago
For example: With message (regex?)
expect(<...>).toThrow[IllegalArgumentException]("it failed")
This one. I often find that you want to make some assert on type and message (type alone is too weak IMO)
And if you need pattern matching in an assert you really should split the test into multiple tests.
Fixed in #37
For example:
With message (regex?)
Or with pattern matching:
But there are two expects there... We could do it like
whenComplete
:Or something like
intercept
in ScalaTest.@eliasson thoughts?