@@ -76,6 +76,7 @@ describe('rc-queue-anim', () => {
76
76
this . state . items . map ( ( item ) => < div key = { item . key } > { item . content } </ div > ) :
77
77
null
78
78
}
79
+ { null }
79
80
</ QueueAnim >
80
81
) ;
81
82
} ,
@@ -98,9 +99,7 @@ describe('rc-queue-anim', () => {
98
99
} ) ;
99
100
100
101
it ( 'should render children' , ( ) => {
101
- const instance = createQueueAnimInstance ( {
102
- ease : 'easeInBounce' ,
103
- } ) ;
102
+ const instance = createQueueAnimInstance ( ) ;
104
103
const children = TestUtils . scryRenderedDOMComponentsWithTag ( instance , 'div' ) ;
105
104
expect ( children . length ) . to . be ( 4 ) ;
106
105
} ) ;
@@ -164,7 +163,10 @@ describe('rc-queue-anim', () => {
164
163
165
164
it ( 'should have duration' , ( done ) => {
166
165
const duration = 300 ;
167
- const instance = createQueueAnimInstance ( { duration } ) ;
166
+ const instance = createQueueAnimInstance ( {
167
+ duration,
168
+ ease : 'easeInBounce' ,
169
+ } ) ;
168
170
const children = TestUtils . scryRenderedDOMComponentsWithTag ( instance , 'div' ) ;
169
171
shouldAnimatingThisOne ( instance , 0 ) ;
170
172
setTimeout ( ( ) => {
@@ -178,7 +180,9 @@ describe('rc-queue-anim', () => {
178
180
179
181
it ( 'should have leave animation' , ( done ) => {
180
182
const interval = defaultInterval ;
181
- const instance = createQueueAnimInstance ( ) ;
183
+ const instance = createQueueAnimInstance ( {
184
+ ease : 'easeInOutElastic' ,
185
+ } ) ;
182
186
setTimeout ( ( ) => {
183
187
const children = TestUtils . scryRenderedDOMComponentsWithTag ( instance , 'div' ) ;
184
188
expect ( getOpacity ( children [ 3 ] ) ) . to . be ( 1 ) ;
@@ -196,6 +200,7 @@ describe('rc-queue-anim', () => {
196
200
197
201
it ( 'should support custom animation config' , ( done ) => {
198
202
const instance = createQueueAnimInstance ( {
203
+ ease : 'easeOutElastic' ,
199
204
animConfig : {
200
205
left : [ 100 , 0 ] ,
201
206
} ,
@@ -240,7 +245,9 @@ describe('rc-queue-anim', () => {
240
245
} ) ;
241
246
242
247
it ( 'should has animating className' , ( done ) => {
243
- const instance = createQueueAnimInstance ( ) ;
248
+ const instance = createQueueAnimInstance ( {
249
+ ease : 'easeInElastic' ,
250
+ } ) ;
244
251
setTimeout ( ( ) => {
245
252
let children = TestUtils . scryRenderedDOMComponentsWithTag ( instance , 'div' ) ;
246
253
expect ( children [ 1 ] . className ) . to . contain ( 'queue-anim-entering' ) ;
0 commit comments