You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
iit(r'should be possible to remove every watch',
(RootScope rootScope, FilterMap filters) {
rootScope.context['foo'] ='bar';
var watch1 = rootScope.watch('(foo|json)+"bar"', (v, p) =>null,
filters: filters);
var watch2 = rootScope.watch('(foo|json)+"bar"', (v, p) =>null,
filters: filters);
expect(() => watch1.remove()).not.toThrow();
expect(() => watch2.remove()).not.toThrow();
});
expect(() => watch2.remove()).not.toThrow(); would throw with Test failed: Caught 'package:angular/change_detection/watch_group.dart': Failed assertion: line 826 pos 12: 'mode != _MODE_DELETED_' is not true.
As we are watching the same expression twice, removing it once removes both. Note: it is not an issue with simple expressions like foo only