diff options
| author | Fred Sauer | 2013-01-16 18:01:03 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2013-01-17 23:08:39 -0800 | 
| commit | 224d7d6e9023395e9bf3f7217984c04fd550f4e7 (patch) | |
| tree | a85d8d39c365e90feded2c84c66f0809308a5372 /src/ng/exceptionHandler.js | |
| parent | a179a9a96eda5c566bda8a70ac8a75822c936a68 (diff) | |
| download | angular.js-224d7d6e9023395e9bf3f7217984c04fd550f4e7.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.js | 3 | 
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){ | 
