We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ca8d4 commit be1c737Copy full SHA for be1c737
…ion/__tests__/withEnterAnimation.test.js …on/__tests__/withEnterAnimation.test.tsxfront/src/hoc/withEnterAnimation/__tests__/withEnterAnimation.test.js renamed to front/src/hoc/withEnterAnimation/__tests__/withEnterAnimation.test.tsx
@@ -1,18 +1,13 @@
1
-// @flow
2
-
3
-// #region imports
4
import React from 'react';
5
-import renderer from 'react-test-renderer'; // needed both for snpashot testing but also to prevent errors from enzyme
+import {shallow} from 'enzyme'
6
import withEnterAnimation from '../withEnterAnimation';
7
-// #endregion
+
8
9
describe('withEnterAnimation HOC', () => {
10
it('renders as expected', () => {
11
const DummyComponent = () => <p>component</p>;
12
13
- const component = renderer
14
- .create(withEnterAnimation()(DummyComponent))
15
- .toJSON();
+ const component = shallow(withEnterAnimation()(DummyComponent));
16
expect(component).toMatchSnapshot();
17
});
18
0 commit comments