SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 189 JavaScript

feat(ngMock): decorator that adds Scope#$countChildScopes and Scope#$countWatchers

When writing tests it's often useful to check the number of child scopes
or watchers within the current current scope subtree. Common use-case for advanced
directives is to test that the directive is properly cleaning up after itself. These
new methods simplify writing assertions that verify that child scopes were properly
destroyed or that watchers were deregistered.

Closes #9926
Closes #9871
I
Igor Minar committed
74981c9f208b3617cbf00beafd61138d25c5d546
Parent: dc4b065
Committed by Caitlin Potter <caitpotter88@gmail.com> on 11/5/2014, 6:23:19 PM