describe("$animate", function() { describe("without animation", function() { beforeEach(inject(function($compile, _$rootElement_, $rootScope) { element = $compile('
')($rootScope); $rootElement = _$rootElement_; })); it("should add element at the start of enter animation", inject(function($animate, $compile, $rootScope) { var child = $compile('')($rootScope); expect(element.contents().length).toBe(0); $animate.enter(child, element); expect(element.contents().length).toBe(1); })); it("should remove the element at the end of leave animation", inject(function($animate, $compile, $rootScope) { var child = $compile('')($rootScope); element.append(child); expect(element.contents().length).toBe(1); $animate.leave(child); expect(element.contents().length).toBe(0); })); it("should reorder the move animation", inject(function($animate, $compile, $rootScope) { var child1 = $compile('