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

docs(ngMock/$interval.flush): fix param type (not optional) #16640

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ngMock/angular-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ angular.mock.$Browser.prototype = {
*
* <div class="alert alert-info">
* Periodic tasks scheduled via {@link $interval} use a different queue and are not flushed by
* `$flushPendingTasks()`. Use {@link ngMock.$interval#flush $interval.flush([millis])} instead.
* `$flushPendingTasks()`. Use {@link ngMock.$interval#flush $interval.flush(millis)} instead.
* </div>
*
* @param {number=} delay - The number of milliseconds to flush.
Expand Down Expand Up @@ -650,7 +650,7 @@ angular.mock.$IntervalProvider = function() {
*
* Runs interval tasks scheduled to be run in the next `millis` milliseconds.
*
* @param {number=} millis maximum timeout amount to flush up until.
* @param {number} millis maximum timeout amount to flush up until.
*
* @return {number} The amount of time moved forward.
*/
Expand Down