Skip to content

Commit 1583dde

Browse files
Foxandxsswesleycho
authored andcommitted
chore(collapse): clean some stale test headers
Closes angular-ui#4340
1 parent 533a9f0 commit 1583dde

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/collapse/test/collapse.spec.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
describe('collapse directive', function() {
2-
var scope, $compile, $animate;
3-
var element;
2+
var element, scope, $compile, $animate;
43

54
beforeEach(module('ui.bootstrap.collapse'));
65
beforeEach(module('ngAnimateMock'));
@@ -19,13 +18,13 @@ describe('collapse directive', function() {
1918
element.remove();
2019
});
2120

22-
it('should be hidden on initialization if isCollapsed = true without transition', function() {
21+
it('should be hidden on initialization if isCollapsed = true', function() {
2322
scope.isCollapsed = true;
2423
scope.$digest();
2524
expect(element.height()).toBe(0);
2625
});
2726

28-
it('should collapse if isCollapsed = true with animation on subsequent use', function() {
27+
it('should collapse if isCollapsed = true on subsequent use', function() {
2928
scope.isCollapsed = false;
3029
scope.$digest();
3130
$animate.flush();
@@ -35,14 +34,14 @@ describe('collapse directive', function() {
3534
expect(element.height()).toBe(0);
3635
});
3736

38-
it('should be shown on initialization if isCollapsed = false without transition', function() {
37+
it('should be shown on initialization if isCollapsed = false', function() {
3938
scope.isCollapsed = false;
4039
scope.$digest();
4140
$animate.flush();
4241
expect(element.height()).not.toBe(0);
4342
});
4443

45-
it('should expand if isCollapsed = false with animation on subsequent use', function() {
44+
it('should expand if isCollapsed = false on subsequent use', function() {
4645
scope.isCollapsed = false;
4746
scope.$digest();
4847
$animate.flush();
@@ -55,7 +54,7 @@ describe('collapse directive', function() {
5554
expect(element.height()).not.toBe(0);
5655
});
5756

58-
it('should expand if isCollapsed = true with animation on subsequent uses', function() {
57+
it('should expand if isCollapsed = true on subsequent uses', function() {
5958
scope.isCollapsed = false;
6059
scope.$digest();
6160
$animate.flush();

0 commit comments

Comments
 (0)