diff --git a/js/ext/angular/test/service/ionicViewService.unit.js b/js/ext/angular/test/service/ionicViewService.unit.js index 3eaa446371..dfe3d4d1e3 100644 --- a/js/ext/angular/test/service/ionicViewService.unit.js +++ b/js/ext/angular/test/service/ionicViewService.unit.js @@ -772,36 +772,4 @@ describe('Ionic View Service', function() { expect($document[0].title).toEqual('New Title'); })); - it('should transition w/out animation', inject(function($compile) { - var opts = {}; - opts.parentElement = $compile("
leaving
")(rootScope); - rootScope.$digest(); - opts.leavingElement = opts.parentElement.find('leaving'); - opts.enteringElement = $compile("entering")(rootScope); - - expect(opts.parentElement.html()).toContain("leaving"); - viewService.transition(opts); - expect(opts.parentElement.html()).toContain("entering"); - })); - - it('should add the animation classname', inject(function($compile) { - var element = $compile("
")(rootScope); - viewService.setAnimationClass(element, 'animation-class', null); - expect(element.hasClass('animation-class')).toEqual(true); - })); - - it('should add the reverse classname', inject(function($compile) { - var element = $compile("
")(rootScope); - viewService.setAnimationClass(element, 'animation-class', 'back'); - expect(element.hasClass('reverse')).toEqual(true); - })); - - it('should remove the reverse classname', inject(function($compile) { - var element = $compile("
")(rootScope); - viewService.setAnimationClass(element, 'animation-class', 'forward'); - expect(element.hasClass('animation-class')).toEqual(true); - expect(element.hasClass('whatever')).toEqual(true); - expect(element.hasClass('reverse')).toEqual(false); - })); - });