UNPKG

react-web-animation

Version:

react-web-animation is a set of React components that expose the Web Animations API in a declarative way.

19 lines (15 loc) 499 B
import Animated from './animated'; import domElements from './utils/dom_elements'; describe('Animated', () => { it('will export an function', () => { expect(Animated).toBeInstanceOf(Function); }); it('will have a method on the prototype for each element', () => { domElements.forEach(e => expect(Animated[e]).toBeDefined()); }); it('will the right displayName', () => { domElements.forEach(e => expect(Animated[e].displayName).toBe(`Animation.${e}`), ); }); });