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

Commit 9f2ad53

Browse files
gkalpakIgorMinar
authored andcommitted
docs(ngMock.$log): fix typos and links
Closes #9313
1 parent c4e21ef commit 9f2ad53

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/ngMock/angular-mocks.js

+11-12
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ angular.mock.$Browser.prototype = {
194194
*
195195
* @description
196196
* Configures the mock implementation of {@link ng.$exceptionHandler} to rethrow or to log errors
197-
* passed into the `$exceptionHandler`.
197+
* passed to the `$exceptionHandler`.
198198
*/
199199

200200
/**
@@ -203,7 +203,7 @@ angular.mock.$Browser.prototype = {
203203
*
204204
* @description
205205
* Mock implementation of {@link ng.$exceptionHandler} that rethrows or logs errors passed
206-
* into it. See {@link ngMock.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration
206+
* to it. See {@link ngMock.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration
207207
* information.
208208
*
209209
*
@@ -243,9 +243,8 @@ angular.mock.$ExceptionHandlerProvider = function() {
243243
*
244244
* @param {string} mode Mode of operation, defaults to `rethrow`.
245245
*
246-
* - `rethrow`: If any errors are passed into the handler in tests, it typically
247-
* means that there is a bug in the application or test, so this mock will
248-
* make these tests fail.
246+
* - `rethrow`: If any errors are passed to the handler in tests, it typically means that there
247+
* is a bug in the application or test, so this mock will make these tests fail.
249248
* - `log`: Sometimes it is desirable to test that an error is thrown, for this case the `log`
250249
* mode stores an array of errors in `$exceptionHandler.errors`, to allow later
251250
* assertion of them. See {@link ngMock.$log#assertEmpty assertEmpty()} and
@@ -336,7 +335,7 @@ angular.mock.$LogProvider = function() {
336335
* @name $log#log.logs
337336
*
338337
* @description
339-
* Array of messages logged using {@link ngMock.$log#log}.
338+
* Array of messages logged using {@link ng.$log#log log()}.
340339
*
341340
* @example
342341
* ```js
@@ -350,7 +349,7 @@ angular.mock.$LogProvider = function() {
350349
* @name $log#info.logs
351350
*
352351
* @description
353-
* Array of messages logged using {@link ngMock.$log#info}.
352+
* Array of messages logged using {@link ng.$log#info info()}.
354353
*
355354
* @example
356355
* ```js
@@ -364,7 +363,7 @@ angular.mock.$LogProvider = function() {
364363
* @name $log#warn.logs
365364
*
366365
* @description
367-
* Array of messages logged using {@link ngMock.$log#warn}.
366+
* Array of messages logged using {@link ng.$log#warn warn()}.
368367
*
369368
* @example
370369
* ```js
@@ -378,7 +377,7 @@ angular.mock.$LogProvider = function() {
378377
* @name $log#error.logs
379378
*
380379
* @description
381-
* Array of messages logged using {@link ngMock.$log#error}.
380+
* Array of messages logged using {@link ng.$log#error error()}.
382381
*
383382
* @example
384383
* ```js
@@ -392,7 +391,7 @@ angular.mock.$LogProvider = function() {
392391
* @name $log#debug.logs
393392
*
394393
* @description
395-
* Array of messages logged using {@link ngMock.$log#debug}.
394+
* Array of messages logged using {@link ng.$log#debug debug()}.
396395
*
397396
* @example
398397
* ```js
@@ -408,8 +407,8 @@ angular.mock.$LogProvider = function() {
408407
* @name $log#assertEmpty
409408
*
410409
* @description
411-
* Assert that the all of the logging methods have no logged messages. If messages present, an
412-
* exception is thrown.
410+
* Assert that all of the logging methods have no logged messages. If any messages are present,
411+
* an exception is thrown.
413412
*/
414413
$log.assertEmpty = function() {
415414
var errors = [];

0 commit comments

Comments
 (0)