aboutsummaryrefslogtreecommitdiffstats
path: root/test/AngularSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-02 16:32:46 -0700
committerMisko Hevery2011-11-14 16:39:33 -0800
commitbd04316a89a0909e7a4e483839d573ce857f7622 (patch)
tree0378c33976ba524b7090a3665cd7729638f1545e /test/AngularSpec.js
parented36b9da3be338fe9eb36f3eeea901d6f51cd768 (diff)
downloadangular.js-bd04316a89a0909e7a4e483839d573ce857f7622.tar.bz2
refactor(services): migrate angular.service -> module
Diffstat (limited to 'test/AngularSpec.js')
-rw-r--r--test/AngularSpec.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js
index 8902c2a9..6229120d 100644
--- a/test/AngularSpec.js
+++ b/test/AngularSpec.js
@@ -382,25 +382,6 @@ describe('angular', function() {
expect(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();
- });
-
it('should inject dependencies specified by $inject and ignore function argument name', function() {
expect(angular.injector(function($provide){
$provide.factory('svc1', function() { return 'svc1'; });