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

Commit

Permalink
chore(mocks): Remove reference to flushNext
Browse files Browse the repository at this point in the history
Closes #4885
  • Loading branch information
jbdeboer authored and petebacondarwin committed Nov 14, 2013
1 parent c6016a6 commit 04492ef
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/ngMock/angular-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1657,21 +1657,6 @@ angular.mock.$TimeoutDecorator = function($delegate, $browser) {
$browser.defer.flush(delay);
};

/**
* @ngdoc method
* @name ngMock.$timeout#flushNext
* @methodOf ngMock.$timeout
* @description
*
* Flushes the next timeout in the queue and compares it to the provided delay
*
* @param {number=} expectedDelay the delay value that will be asserted against the delay of the
* next timeout function
*/
$delegate.flushNext = function(expectedDelay) {
$browser.defer.flushNext(expectedDelay);
};

/**
* @ngdoc method
* @name ngMock.$timeout#verifyNoPendingTasks
Expand Down Expand Up @@ -2127,4 +2112,4 @@ angular.mock.clearDataCache = function() {
}
}
};
})(window);
})(window);

0 comments on commit 04492ef

Please sign in to comment.