mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-15 12:42:26 +08:00
Added definition for $interval.flush([millis])
ngMock's $interval includes a flush method that takes an optional maximum number of milliseconds to advance the interval, and returns the number of milliseconds that were actually advanced.
This commit is contained in:
1 parent
6f3946e020
commit
aa2b85affb
1 file changed
+9
Vendored
+9
@@ -61,6 +61,15 @@ declare module ng {
|
||||
flushNext(expectedDelay?: number): void;
|
||||
verifyNoPendingTasks(): void;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// IntervalService
|
||||
// see http://docs.angularjs.org/api/ngMock.$interval
|
||||
// Augments the original service
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IIntervalService {
|
||||
flush(millis?: number): number;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// LogService
|
||||
|
||||
Reference in new issue
Block a user