diff options
| author | Misko Hevery | 2010-11-10 16:08:54 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-11-10 21:01:17 -0800 |
| commit | 0499c4727036446f5c8a5722bbd9c4018dae146f (patch) | |
| tree | 334261fe7a47d325eb5d0fce653049a4d8940555 /test/directivesSpec.js | |
| parent | 43a4ff4cdf4100ded15b90d49a514648a88b87b4 (diff) | |
| download | angular.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.js | 4 |
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(){ |
