In Mockito I used to do stuff like this: ``` ...
# testing
d
In Mockito I used to do stuff like this:
Copy code
`when`(api.method())
            .then { throw anError }
            .thenReturn(something)
which basically meant: first time it is called throw
anError
, second time return
something
Is there a way to do something like this with MockK?
nevermind, it was obvious
Copy code
every { api.method() } throws anError andThen something