We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 472330e commit 5e2c1c4Copy full SHA for 5e2c1c4
1 file changed
test/CSSTransition-test.js
@@ -165,7 +165,29 @@ describe('CSSTransition', () => {
165
<div />
166
</CSSTransition>
167
)
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
183
+ expect(node.className).toEqual('');
184
+ done();
185
186
+ >
187
+ <div/>
188
+ </CSSTransition>
189
+ );
190
191
192
it('should not be appearing in normal enter mode', done => {
193
let count = 0;
0 commit comments