diff options
| author | Fred Sauer | 2012-12-04 14:38:45 -0800 |
|---|---|---|
| committer | Pawel Kozlowski | 2012-12-06 21:50:21 +0100 |
| commit | af6f2483be0f2fdaec0329273a664d651081fe73 (patch) | |
| tree | 820396b5f32982e9a78ef276856aa7704fc740f8 /src/ngMock/angular-mocks.js | |
| parent | d8522aa34948fd9f327158b7022d0a2e33450e3d (diff) | |
| download | angular.js-af6f2483be0f2fdaec0329273a664d651081fe73.tar.bz2 | |
docs(mocks): update src/ngMock/angular-mocks.js documentation
Clarify how to use `$exceptionHandlerProvider.mode('log')` in tests
Diffstat (limited to 'src/ngMock/angular-mocks.js')
| -rw-r--r-- | src/ngMock/angular-mocks.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index a3a61db9..ca31f1d9 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -1,4 +1,3 @@ - /** * @license AngularJS v"NG_VERSION_FULL" * (c) 2010-2012 Google, Inc. http://angularjs.org @@ -221,8 +220,8 @@ angular.mock.$ExceptionHandlerProvider = function() { * - `rethrow`: If any errors are are passed into the handler in tests, it typically * means that there is a bug in the application or test, so this mock will * make these tests fail. - * - `log`: Sometimes it is desirable to test that an error is throw, for this case the `log` mode stores the - * error and allows later assertion of it. + * - `log`: Sometimes it is desirable to test that an error is throw, for this case the `log` mode stores an + * array of errors in `$exceptionHandler.errors`, to allow later assertion of them. * See {@link ngMock.$log#assertEmpty assertEmpty()} and * {@link ngMock.$log#reset reset()} */ |
