Skip to content

Commit bcee7f2

Browse files
author
Adam Bradley
committed
remove tests no longer needed
1 parent 310b453 commit bcee7f2

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

js/ext/angular/test/service/ionicViewService.unit.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -772,36 +772,4 @@ describe('Ionic View Service', function() {
772772
expect($document[0].title).toEqual('New Title');
773773
}));
774774

775-
it('should transition w/out animation', inject(function($compile) {
776-
var opts = {};
777-
opts.parentElement = $compile("<div><leaving>leaving</leaving></div>")(rootScope);
778-
rootScope.$digest();
779-
opts.leavingElement = opts.parentElement.find('leaving');
780-
opts.enteringElement = $compile("<entering>entering</entering>")(rootScope);
781-
782-
expect(opts.parentElement.html()).toContain("leaving");
783-
viewService.transition(opts);
784-
expect(opts.parentElement.html()).toContain("entering");
785-
}));
786-
787-
it('should add the animation classname', inject(function($compile) {
788-
var element = $compile("<div></div>")(rootScope);
789-
viewService.setAnimationClass(element, 'animation-class', null);
790-
expect(element.hasClass('animation-class')).toEqual(true);
791-
}));
792-
793-
it('should add the reverse classname', inject(function($compile) {
794-
var element = $compile("<div></div>")(rootScope);
795-
viewService.setAnimationClass(element, 'animation-class', 'back');
796-
expect(element.hasClass('reverse')).toEqual(true);
797-
}));
798-
799-
it('should remove the reverse classname', inject(function($compile) {
800-
var element = $compile("<div class='whatever animation-class reverse'></div>")(rootScope);
801-
viewService.setAnimationClass(element, 'animation-class', 'forward');
802-
expect(element.hasClass('animation-class')).toEqual(true);
803-
expect(element.hasClass('whatever')).toEqual(true);
804-
expect(element.hasClass('reverse')).toEqual(false);
805-
}));
806-
807775
});

0 commit comments

Comments
 (0)