diff options
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 0e6b2bfa..010dce7c 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -312,24 +312,24 @@ describe('angular service', function() {      var scope = createScope();      angular.service('fake', function() { return 'old'; });      angular.service('fake', function() { return 'new'; }); -     +      expect(scope.$service('fake')).toEqual('new');    }); -   +    it('should not preserve properties on override', function() {      angular.service('fake', {$one: true}, {$two: true}, {three: true});      var result = angular.service('fake', {$four: true}); -     +      expect(result.$one).toBeUndefined();      expect(result.$two).toBeUndefined();      expect(result.three).toBeUndefined();      expect(result.$four).toBe(true);    }); -   +    it('should not preserve non-angular properties on override', function() {      angular.service('fake', {one: true}, {two: true});      var result = angular.service('fake', {third: true}); -     +      expect(result.one).not.toBeDefined();      expect(result.two).not.toBeDefined();      expect(result.third).toBeTruthy(); | 
