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

Commit 2dc83b2

Browse files
committed
docs(ngMock/$interval.flush): fix param type (not optional)
Closes #16640
1 parent 3154111 commit 2dc83b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngMock/angular-mocks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ angular.mock.$Browser.prototype = {
262262
*
263263
* <div class="alert alert-info">
264264
* Periodic tasks scheduled via {@link $interval} use a different queue and are not flushed by
265-
* `$flushPendingTasks()`. Use {@link ngMock.$interval#flush $interval.flush([millis])} instead.
265+
* `$flushPendingTasks()`. Use {@link ngMock.$interval#flush $interval.flush(millis)} instead.
266266
* </div>
267267
*
268268
* @param {number=} delay - The number of milliseconds to flush.
@@ -650,7 +650,7 @@ angular.mock.$IntervalProvider = function() {
650650
*
651651
* Runs interval tasks scheduled to be run in the next `millis` milliseconds.
652652
*
653-
* @param {number=} millis maximum timeout amount to flush up until.
653+
* @param {number} millis maximum timeout amount to flush up until.
654654
*
655655
* @return {number} The amount of time moved forward.
656656
*/

0 commit comments

Comments
 (0)