1
1
describe ( 'collapse directive' , function ( ) {
2
- var scope , $compile , $animate ;
3
- var element ;
2
+ var element , scope , $compile , $animate ;
4
3
5
4
beforeEach ( module ( 'ui.bootstrap.collapse' ) ) ;
6
5
beforeEach ( module ( 'ngAnimateMock' ) ) ;
@@ -19,13 +18,13 @@ describe('collapse directive', function() {
19
18
element . remove ( ) ;
20
19
} ) ;
21
20
22
- it ( 'should be hidden on initialization if isCollapsed = true without transition ' , function ( ) {
21
+ it ( 'should be hidden on initialization if isCollapsed = true' , function ( ) {
23
22
scope . isCollapsed = true ;
24
23
scope . $digest ( ) ;
25
24
expect ( element . height ( ) ) . toBe ( 0 ) ;
26
25
} ) ;
27
26
28
- it ( 'should collapse if isCollapsed = true with animation on subsequent use' , function ( ) {
27
+ it ( 'should collapse if isCollapsed = true on subsequent use' , function ( ) {
29
28
scope . isCollapsed = false ;
30
29
scope . $digest ( ) ;
31
30
$animate . flush ( ) ;
@@ -35,14 +34,14 @@ describe('collapse directive', function() {
35
34
expect ( element . height ( ) ) . toBe ( 0 ) ;
36
35
} ) ;
37
36
38
- it ( 'should be shown on initialization if isCollapsed = false without transition ' , function ( ) {
37
+ it ( 'should be shown on initialization if isCollapsed = false' , function ( ) {
39
38
scope . isCollapsed = false ;
40
39
scope . $digest ( ) ;
41
40
$animate . flush ( ) ;
42
41
expect ( element . height ( ) ) . not . toBe ( 0 ) ;
43
42
} ) ;
44
43
45
- it ( 'should expand if isCollapsed = false with animation on subsequent use' , function ( ) {
44
+ it ( 'should expand if isCollapsed = false on subsequent use' , function ( ) {
46
45
scope . isCollapsed = false ;
47
46
scope . $digest ( ) ;
48
47
$animate . flush ( ) ;
@@ -55,7 +54,7 @@ describe('collapse directive', function() {
55
54
expect ( element . height ( ) ) . not . toBe ( 0 ) ;
56
55
} ) ;
57
56
58
- it ( 'should expand if isCollapsed = true with animation on subsequent uses' , function ( ) {
57
+ it ( 'should expand if isCollapsed = true on subsequent uses' , function ( ) {
59
58
scope . isCollapsed = false ;
60
59
scope . $digest ( ) ;
61
60
$animate . flush ( ) ;
0 commit comments