Skip to content

Commit

Permalink
Add test adding undefined to class
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickm68 committed May 20, 2019
1 parent b414034 commit a4a612f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion test/CSSTransition-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,29 @@ describe('CSSTransition', () => {
<div />
</CSSTransition>
)
})
});

it('should not add undefined when appearDone is not defined', done => {
mount(
<CSSTransition
timeout={10}
classNames={{ appear: 'appear-test' }}
in={true}
appear={true}
onEnter={(node, isAppearing) => {
expect(isAppearing).toEqual(true);
expect(node.className).toEqual('appear-test');
}}
onEntered={(node, isAppearing) => {
expect(isAppearing).toEqual(true);
expect(node.className).toEqual('');
done();
}}
>
<div/>
</CSSTransition>
);
});

it('should not be appearing in normal enter mode', done => {
let count = 0;
Expand Down

0 comments on commit a4a612f

Please sign in to comment.