Closed bampakoa closed 8 years ago
what do you mean "check"?
Shouldn't we test the call of logger function in the unit test? Something like:
expect(logger).toHaveBeenCalled()
ah, sure
im making a bunch of updates right now. but i'd love to see a PR for this
I tried to test it inside the catch block, after the last expect statement, but I seems that it never reaches logger.error statement during testing. Is it possible that $delegate(exception, cause)
prevents it from that?
Closed in replace of PR #170.
@johnpapa I noticed that the unit test of exception-handler.provider.js, does not check if the logger is called at all. Is there any specific reason for that?
Thanks