Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4f07810

Browse files
committed
docs(ngMock.$log): fix typos and link texts
1 parent 4a6c7cf commit 4f07810

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/ngMock/angular-mocks.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ angular.mock.$Browser.prototype = {
184184
*
185185
* @description
186186
* Configures the mock implementation of {@link ng.$exceptionHandler} to rethrow or to log errors
187-
* passed into the `$exceptionHandler`.
187+
* passed to the `$exceptionHandler`.
188188
*/
189189

190190
/**
@@ -193,7 +193,7 @@ angular.mock.$Browser.prototype = {
193193
*
194194
* @description
195195
* Mock implementation of {@link ng.$exceptionHandler} that rethrows or logs errors passed
196-
* into it. See {@link ngMock.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration
196+
* to it. See {@link ngMock.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration
197197
* information.
198198
*
199199
*
@@ -233,9 +233,8 @@ angular.mock.$ExceptionHandlerProvider = function() {
233233
*
234234
* @param {string} mode Mode of operation, defaults to `rethrow`.
235235
*
236-
* - `rethrow`: If any errors are passed into the handler in tests, it typically
237-
* means that there is a bug in the application or test, so this mock will
238-
* make these tests fail.
236+
* - `rethrow`: If any errors are passed to the handler in tests, it typically means that there
237+
* is a bug in the application or test, so this mock will make these tests fail.
239238
* - `log`: Sometimes it is desirable to test that an error is thrown, for this case the `log`
240239
* mode stores an array of errors in `$exceptionHandler.errors`, to allow later
241240
* assertion of them. See {@link ngMock.$log#assertEmpty assertEmpty()} and
@@ -326,7 +325,7 @@ angular.mock.$LogProvider = function() {
326325
* @name $log#log.logs
327326
*
328327
* @description
329-
* Array of messages logged using {@link ngMock.$log#log}.
328+
* Array of messages logged using {@link ngMock.$log#log log()}.
330329
*
331330
* @example
332331
* ```js
@@ -340,7 +339,7 @@ angular.mock.$LogProvider = function() {
340339
* @name $log#info.logs
341340
*
342341
* @description
343-
* Array of messages logged using {@link ngMock.$log#info}.
342+
* Array of messages logged using {@link ngMock.$log#info info()}.
344343
*
345344
* @example
346345
* ```js
@@ -354,7 +353,7 @@ angular.mock.$LogProvider = function() {
354353
* @name $log#warn.logs
355354
*
356355
* @description
357-
* Array of messages logged using {@link ngMock.$log#warn}.
356+
* Array of messages logged using {@link ngMock.$log#warn warn()}.
358357
*
359358
* @example
360359
* ```js
@@ -368,7 +367,7 @@ angular.mock.$LogProvider = function() {
368367
* @name $log#error.logs
369368
*
370369
* @description
371-
* Array of messages logged using {@link ngMock.$log#error}.
370+
* Array of messages logged using {@link ngMock.$log#error error()}.
372371
*
373372
* @example
374373
* ```js
@@ -382,7 +381,7 @@ angular.mock.$LogProvider = function() {
382381
* @name $log#debug.logs
383382
*
384383
* @description
385-
* Array of messages logged using {@link ngMock.$log#debug}.
384+
* Array of messages logged using {@link ngMock.$log#debug debug()}.
386385
*
387386
* @example
388387
* ```js
@@ -398,8 +397,8 @@ angular.mock.$LogProvider = function() {
398397
* @name $log#assertEmpty
399398
*
400399
* @description
401-
* Assert that the all of the logging methods have no logged messages. If messages present, an
402-
* exception is thrown.
400+
* Assert that all of the logging methods have no logged messages. If any messages are present,
401+
* an exception is thrown.
403402
*/
404403
$log.assertEmpty = function() {
405404
var errors = [];

0 commit comments

Comments
 (0)