thenError
Runs the specified test and validates that the last step throws the exception expected by the supplied AssertError. Note that if the test specification has multiple events, it will fail if the exception is thrown before the execution of the last event.
Parameters
assertion
an expectation on the exception