File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,29 @@ describe('CSSTransition', () => {
165165 < div />
166166 </ CSSTransition >
167167 )
168- } )
168+ } ) ;
169+
170+ it ( 'should not add undefined when appearDone is not defined' , done => {
171+ mount (
172+ < CSSTransition
173+ timeout = { 10 }
174+ classNames = { { appear : 'appear-test' } }
175+ in = { true }
176+ appear = { true }
177+ onEnter = { ( node , isAppearing ) => {
178+ expect ( isAppearing ) . toEqual ( true ) ;
179+ expect ( node . className ) . toEqual ( 'appear-test' ) ;
180+ } }
181+ onEntered = { ( node , isAppearing ) => {
182+ expect ( isAppearing ) . toEqual ( true ) ;
183+ expect ( node . className ) . toEqual ( '' ) ;
184+ done ( ) ;
185+ } }
186+ >
187+ < div />
188+ </ CSSTransition >
189+ ) ;
190+ } ) ;
169191
170192 it ( 'should not be appearing in normal enter mode' , done => {
171193 let count = 0 ;
You can’t perform that action at this time.
0 commit comments