Sets the logging mode.
string
Mode of operation, defaults to rethrow.
rethrow
log
mode stores an array of errors in `$exceptionHandler.errors`, to allow later
assertion of them. See <
a
href
=
"/references/JavaScript-AngularJS-ngMock/ngMock%252E%2524log.html#assertEmpty"
>assertEmpty()</
> and
<
"/references/JavaScript-AngularJS-ngMock/ngMock%252E%2524log.html#reset"
>reset()</
>
is a bug in the application or test, so this mock will make these tests fail.
For any implementations that expect exceptions to be thrown, the `rethrow` mode
will also maintain a log of thrown errors.
Please login to continue.
Please login to continue.