Skip to content

Commit

Permalink
[enzyme-adapter-utils] [New] Add event name mapping for animation events
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiemccorkell committed Mar 12, 2018
1 parent 3211a0e commit 4c60ad8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/enzyme-adapter-utils/src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export function mapNativeEventNames(event) {
mouseenter: 'mouseEnter',
mouseleave: 'mouseLeave',
transitionend: 'transitionEnd',
animationstart: 'animationStart',
animationiteration: 'animationIteration',
animationend: 'animationEnd',
};

return nativeToReactEventMap[event] || event;
Expand Down

0 comments on commit 4c60ad8

Please sign in to comment.