diff options
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(){ |
