ngMock.$timeout

service in module ngMock This service is just a simple decorator for $timeout service that adds a "flush" and "verifyNoPendingTasks" methods. Methods flush([delay]); Flushes the queue of pending tasks. Parameters Param Type Details delay (optional) number maximum timeout amount to flush up until verifyNoPendingTasks(); Verifies that there are no pending tasks that need to be flushed.

ngMock.$rootScope.Scope.$countWatchers()

$countWatchers(); Counts all the watchers of direct and indirect child scopes of the current scope. The watchers of the current scope are included in the count and so are all the watchers of isolate child scopes. Returns number Total number of watchers.

ngMock.$rootScope.Scope.$countChildScopes()

$countChildScopes(); Counts all the direct and indirect child scopes of the current scope. The current scope is excluded from the count. The count includes all isolate child scopes. Returns number Total number of child scopes.

ngMock.$rootScope.Scope

type in module ngMock Scope type decorated with helper methods useful for testing. These methods are automatically available on any Scope instance when ngMock module is loaded. In addition to all the regular Scope methods, the following helper methods are available: Methods $countChildScopes(); Counts all the direct and indirect child scopes of the current scope. The current scope is excluded from the count. The count includes all isolate child scopes. Returns number Total number of

ngMock.$log.warn.logs

warn.logs Array of messages logged using warn().

ngMock.$log.reset()

reset(); Reset all of the logging arrays to empty.

ngMock.$log.log.logs

log.logs Array of messages logged using log().

ngMock.$log.info.logs

info.logs Array of messages logged using info().

ngMock.$log.error.logs

error.logs Array of messages logged using error().

ngMock.$log.debug.logs

debug.logs Array of messages logged using debug().