aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/exceptionHandler.js
diff options
context:
space:
mode:
authorFred Sauer2013-01-16 18:01:03 -0800
committerMisko Hevery2013-01-17 23:11:02 -0800
commit1f8be1ca66b312fdc396403f01ee8aae9371577a (patch)
tree275faae81a6b38bc844e1b63515a4b3786a4934e /src/ng/exceptionHandler.js
parentcbc2024092b326cc7e46d4defc4bf2248bbeb835 (diff)
downloadangular.js-1f8be1ca66b312fdc396403f01ee8aae9371577a.tar.bz2
docs(exceptionHandler): document testing
Update src/ng/exceptionHandler.js Here's an iniitla attempt at documenting how one might write a test using $exceptionHandlerProvider. The key take-away is the use of this pattern: it(...  module(...    $exceptionHandlerProvider.mode('log');  });  inject(...  ); });
Diffstat (limited to 'src/ng/exceptionHandler.js')
-rw-r--r--src/ng/exceptionHandler.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ng/exceptionHandler.js b/src/ng/exceptionHandler.js
index 4378e102..f74e09ee 100644
--- a/src/ng/exceptionHandler.js
+++ b/src/ng/exceptionHandler.js
@@ -11,11 +11,12 @@
* the browser console.
*
* In unit tests, if `angular-mocks.js` is loaded, this service is overridden by
- * {@link ngMock.$exceptionHandler mock $exceptionHandler}
+ * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.
*
* @param {Error} exception Exception associated with the error.
* @param {string=} cause optional information about the context in which
* the error was thrown.
+ *
*/
function $ExceptionHandlerProvider() {
this.$get = ['$log', function($log){