File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ function $RootScopeProvider(){
91
91
expect(scope.greeting).toEqual(undefined);
92
92
93
93
scope.$watch('name', function() {
94
- this .greeting = this .salutation + ' ' + this .name + '!';
94
+ scope .greeting = scope .salutation + ' ' + scope .name + '!';
95
95
}); // initialize the watch
96
96
97
97
expect(scope.greeting).toEqual(undefined);
@@ -252,7 +252,7 @@ function $RootScopeProvider(){
252
252
scope.counter = 0;
253
253
254
254
expect(scope.counter).toEqual(0);
255
- scope.$watch('name', function(newValue, oldValue) { counter = counter + 1; });
255
+ scope.$watch('name', function(newValue, oldValue) { scope. counter = scope. counter + 1; });
256
256
expect(scope.counter).toEqual(0);
257
257
258
258
scope.$digest();
@@ -345,7 +345,7 @@ function $RootScopeProvider(){
345
345
346
346
expect(scope.counter).toEqual(0);
347
347
scope.$watch('name', function(newValue, oldValue) {
348
- counter = counter + 1;
348
+ scope. counter = scope. counter + 1;
349
349
});
350
350
expect(scope.counter).toEqual(0);
351
351
You can’t perform that action at this time.
0 commit comments