aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-11-10 16:08:54 -0800
committerMisko Hevery2010-11-10 21:01:17 -0800
commit0499c4727036446f5c8a5722bbd9c4018dae146f (patch)
tree334261fe7a47d325eb5d0fce653049a4d8940555 /test/directivesSpec.js
parent43a4ff4cdf4100ded15b90d49a514648a88b87b4 (diff)
downloadangular.js-0499c4727036446f5c8a5722bbd9c4018dae146f.tar.bz2
added ng:switch-when-default; changed $watch to always fire on init. (may be backward incompatible)
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 2e5aa2a0..a3aa2481 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -172,12 +172,12 @@ describe("directives", function(){
var scope = compile('<div ng:watch="i: count = count + 1" ng:init="count = 0">');
scope.$eval();
scope.$eval();
- expect(scope.$get('count')).toEqual(0);
+ expect(scope.$get('count')).toEqual(1);
scope.$set('i', 0);
scope.$eval();
scope.$eval();
- expect(scope.$get('count')).toEqual(1);
+ expect(scope.$get('count')).toEqual(2);
});
describe('ng:click', function(){